summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/public
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
commit2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch)
tree988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebKit/chromium/public
parentdd91e772430dc294e3bf478c119ef8d43c0a3358 (diff)
downloadqtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebKit/chromium/public')
-rw-r--r--Source/WebKit/chromium/public/WebAccessibilityRole.h1
-rw-r--r--Source/WebKit/chromium/public/WebActiveWheelFlingParameters.h54
-rw-r--r--Source/WebKit/chromium/public/WebArrayBuffer.h1
-rw-r--r--Source/WebKit/chromium/public/WebAutofillClient.h24
-rw-r--r--Source/WebKit/chromium/public/WebBatteryStatus.h51
-rw-r--r--Source/WebKit/chromium/public/WebBatteryStatusClient.h41
-rw-r--r--Source/WebKit/chromium/public/WebCompositor.h8
-rw-r--r--Source/WebKit/chromium/public/WebCompositorInputHandler.h3
-rw-r--r--Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h6
-rw-r--r--Source/WebKit/chromium/public/WebContextMenuData.h2
-rw-r--r--Source/WebKit/chromium/public/WebDevToolsFrontendClient.h3
-rw-r--r--Source/WebKit/chromium/public/WebDocument.h2
-rw-r--r--Source/WebKit/chromium/public/WebElement.h5
-rw-r--r--Source/WebKit/chromium/public/WebFileChooserCompletion.h20
-rw-r--r--Source/WebKit/chromium/public/WebFrame.h18
-rw-r--r--Source/WebKit/chromium/public/WebFrameClient.h14
-rw-r--r--Source/WebKit/chromium/public/WebHitTestResult.h71
-rw-r--r--Source/WebKit/chromium/public/WebIDBCursor.h1
-rw-r--r--Source/WebKit/chromium/public/WebIDBDatabase.h9
-rw-r--r--Source/WebKit/chromium/public/WebIDBDatabaseException.h (renamed from Source/WebKit/chromium/public/WebReferrerPolicy.h)16
-rw-r--r--Source/WebKit/chromium/public/WebIDBIndex.h13
-rw-r--r--Source/WebKit/chromium/public/WebIDBKeyPath.h22
-rw-r--r--Source/WebKit/chromium/public/WebIDBObjectStore.h16
-rw-r--r--Source/WebKit/chromium/public/WebInputElement.h5
-rw-r--r--Source/WebKit/chromium/public/WebInputEvent.h54
-rw-r--r--Source/WebKit/chromium/public/WebIntent.h16
-rw-r--r--Source/WebKit/chromium/public/WebMediaPlayer.h87
-rw-r--r--Source/WebKit/chromium/public/WebMediaPlayerClient.h19
-rw-r--r--Source/WebKit/chromium/public/WebNodeCollection.h2
-rw-r--r--Source/WebKit/chromium/public/WebPageVisibilityState.h3
-rw-r--r--Source/WebKit/chromium/public/WebPrerendererClient.h (renamed from Source/WebKit/chromium/public/WebAttribute.h)46
-rw-r--r--Source/WebKit/chromium/public/WebPrintScalingOption.h (renamed from Source/WebKit/chromium/public/WebNamedNodeMap.h)44
-rw-r--r--Source/WebKit/chromium/public/WebRange.h4
-rw-r--r--Source/WebKit/chromium/public/WebRuntimeFeatures.h9
-rw-r--r--Source/WebKit/chromium/public/WebScopedMicrotaskSuppression.h74
-rw-r--r--Source/WebKit/chromium/public/WebSecurityPolicy.h6
-rw-r--r--Source/WebKit/chromium/public/WebSettings.h6
-rw-r--r--Source/WebKit/chromium/public/WebSpeechGrammar.h60
-rw-r--r--Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h91
-rw-r--r--Source/WebKit/chromium/public/WebSpeechRecognitionParams.h58
-rw-r--r--Source/WebKit/chromium/public/WebSpeechRecognitionResult.h59
-rw-r--r--Source/WebKit/chromium/public/WebSpeechRecognizer.h56
-rw-r--r--Source/WebKit/chromium/public/WebSpeechRecognizerClient.h94
-rw-r--r--Source/WebKit/chromium/public/WebStorageEventDispatcher.h23
-rw-r--r--Source/WebKit/chromium/public/WebStorageNamespace.h25
-rw-r--r--Source/WebKit/chromium/public/WebSurroundingText.h72
-rw-r--r--Source/WebKit/chromium/public/WebTextCheckingCompletion.h1
-rw-r--r--Source/WebKit/chromium/public/WebTextFieldDecoratorClient.h71
-rw-r--r--Source/WebKit/chromium/public/WebTimeRange.h (renamed from Source/WebKit/chromium/public/WebMediaElement.h)32
-rw-r--r--Source/WebKit/chromium/public/WebUserMediaClient.h3
-rw-r--r--Source/WebKit/chromium/public/WebUserMediaRequest.h8
-rw-r--r--Source/WebKit/chromium/public/WebVideoFrame.h81
-rw-r--r--Source/WebKit/chromium/public/WebView.h40
-rw-r--r--Source/WebKit/chromium/public/WebViewClient.h11
-rw-r--r--Source/WebKit/chromium/public/WebWidget.h25
-rw-r--r--Source/WebKit/chromium/public/WebWidgetClient.h19
-rw-r--r--Source/WebKit/chromium/public/android/WebInputEventFactory.h2
-rw-r--r--Source/WebKit/chromium/public/platform/WebArrayBufferView.h11
-rw-r--r--Source/WebKit/chromium/public/platform/WebAudioBus.h73
-rw-r--r--Source/WebKit/chromium/public/platform/WebAudioDevice.h34
-rw-r--r--Source/WebKit/chromium/public/platform/WebData.h122
-rw-r--r--Source/WebKit/chromium/public/platform/WebDragData.h4
-rw-r--r--Source/WebKit/chromium/public/platform/WebFileSystem.h5
-rw-r--r--Source/WebKit/chromium/public/platform/WebGamepad.h112
-rw-r--r--Source/WebKit/chromium/public/platform/WebGamepads.h88
-rw-r--r--Source/WebKit/chromium/public/platform/WebHTTPBody.h121
-rw-r--r--Source/WebKit/chromium/public/platform/WebHTTPHeaderVisitor.h60
-rw-r--r--Source/WebKit/chromium/public/platform/WebHTTPLoadInfo.h100
-rw-r--r--Source/WebKit/chromium/public/platform/WebICECandidateDescriptor.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebICEOptions.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h259
-rw-r--r--Source/WebKit/chromium/public/platform/WebLocalizedString.h58
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaHints.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h64
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h57
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h81
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h78
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamSource.h98
-rw-r--r--Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h79
-rw-r--r--Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h85
-rw-r--r--Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h64
-rw-r--r--Source/WebKit/chromium/public/platform/WebPrivateOwnPtr.h53
-rw-r--r--Source/WebKit/chromium/public/platform/WebReferrerPolicy.h31
-rw-r--r--Source/WebKit/chromium/public/platform/WebSessionDescriptionDescriptor.h26
-rw-r--r--Source/WebKit/chromium/public/platform/WebSocketStreamError.h57
-rw-r--r--Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h70
-rw-r--r--Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h78
-rw-r--r--Source/WebKit/chromium/public/platform/WebThread.h50
-rw-r--r--Source/WebKit/chromium/public/platform/WebThreadSafeData.h89
-rw-r--r--Source/WebKit/chromium/public/platform/WebURL.h170
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLError.h85
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLLoadTiming.h120
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLLoader.h83
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLLoaderClient.h90
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLRequest.h211
-rw-r--r--Source/WebKit/chromium/public/platform/WebURLResponse.h212
-rw-r--r--Source/WebKit/chromium/public/platform/WebVector.h198
99 files changed, 2058 insertions, 2955 deletions
diff --git a/Source/WebKit/chromium/public/WebAccessibilityRole.h b/Source/WebKit/chromium/public/WebAccessibilityRole.h
index 196845730..60958f910 100644
--- a/Source/WebKit/chromium/public/WebAccessibilityRole.h
+++ b/Source/WebKit/chromium/public/WebAccessibilityRole.h
@@ -67,6 +67,7 @@ enum WebAccessibilityRole {
WebAccessibilityRoleDocumentRegion,
WebAccessibilityRoleDrawer,
WebAccessibilityRoleEditableText,
+ WebAccessibilityRoleFooter,
WebAccessibilityRoleForm,
WebAccessibilityRoleGrid,
WebAccessibilityRoleGroup,
diff --git a/Source/WebKit/chromium/public/WebActiveWheelFlingParameters.h b/Source/WebKit/chromium/public/WebActiveWheelFlingParameters.h
new file mode 100644
index 000000000..ef277d5fd
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebActiveWheelFlingParameters.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebActiveWheelFlingParameters_h
+#define WebActiveWheelFlingParameters_h
+
+#include "platform/WebCommon.h"
+
+#include "platform/WebFloatPoint.h"
+#include "platform/WebPoint.h"
+#include "platform/WebSize.h"
+
+namespace WebKit {
+
+struct WebActiveWheelFlingParameters {
+ WebFloatPoint delta;
+ WebPoint point;
+ WebPoint globalPoint;
+ int modifiers;
+ WebSize cumulativeScroll;
+ double startTime;
+
+ WebActiveWheelFlingParameters()
+ : modifiers(0)
+ , startTime(0)
+ {
+ }
+};
+
+}
+
+#endif
diff --git a/Source/WebKit/chromium/public/WebArrayBuffer.h b/Source/WebKit/chromium/public/WebArrayBuffer.h
index 81c9cb83b..85ba2c30f 100644
--- a/Source/WebKit/chromium/public/WebArrayBuffer.h
+++ b/Source/WebKit/chromium/public/WebArrayBuffer.h
@@ -68,6 +68,7 @@ public:
#if WEBKIT_USING_V8
WEBKIT_EXPORT v8::Handle<v8::Value> toV8Value();
+ WEBKIT_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>);
#endif
#if WEBKIT_IMPLEMENTATION
diff --git a/Source/WebKit/chromium/public/WebAutofillClient.h b/Source/WebKit/chromium/public/WebAutofillClient.h
index 5824f170a..7b48f57db 100644
--- a/Source/WebKit/chromium/public/WebAutofillClient.h
+++ b/Source/WebKit/chromium/public/WebAutofillClient.h
@@ -40,16 +40,26 @@ class WebString;
class WebAutofillClient {
public:
+ enum {
+ MenuItemIDAutocompleteEntry = 0,
+ MenuItemIDWarningMessage = -1,
+ MenuItemIDPasswordEntry = -2,
+ MenuItemIDSeparator = -3,
+ MenuItemIDClearForm = -4,
+ MenuItemIDAutofillOptions = -5,
+ MenuItemIDDataListEntry = -6
+ };
+
// Informs the browser that the user has accepted an Autofill suggestion for
- // a WebNode. |uniqueID| is used as a key into the set of Autofill profiles,
- // and should never be negative. If it is 0, then the suggestion is an
- // Autocomplete suggestion; and |value| stores the suggested text. |index|
- // is an index of the selected suggestion in the list of suggestions provided
- // by the client.
+ // a WebNode. A positive |itemID| is a unique id used to identify the set
+ // of Autofill profiles. If it is AutocompleteEntryMenuItemID, then the
+ // suggestion is an Autocomplete suggestion; and |value| stores the
+ // suggested text. |index| is an index of the selected suggestion in the
+ // list of suggestions provided by the client.
virtual void didAcceptAutofillSuggestion(const WebNode&,
const WebString& value,
const WebString& label,
- int uniqueID,
+ int itemID,
unsigned index) { }
// Informs the browser that the user has selected an Autofill suggestion for
@@ -58,7 +68,7 @@ public:
virtual void didSelectAutofillSuggestion(const WebNode&,
const WebString& name,
const WebString& label,
- int uniqueID) { }
+ int itemID) { }
// Informs the browser that the user has cleared the selection from the
// Autofill suggestions popup. This happens when a user uses the arrow
diff --git a/Source/WebKit/chromium/public/WebBatteryStatus.h b/Source/WebKit/chromium/public/WebBatteryStatus.h
new file mode 100644
index 000000000..b1cf48600
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebBatteryStatus.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebBatteryStatus_h
+#define WebBatteryStatus_h
+
+#include "platform/WebCommon.h"
+
+namespace WebKit {
+
+class WebBatteryStatus {
+public:
+ WebBatteryStatus()
+ : charging(true)
+ , chargingTime(0.0)
+ , dischargingTime(0.0)
+ , level(0.0)
+ {
+ }
+
+ bool charging;
+ double chargingTime;
+ double dischargingTime;
+ double level;
+};
+
+} // namespace WebKit
+
+#endif // WebBatteryStatus_h
diff --git a/Source/WebKit/chromium/public/WebBatteryStatusClient.h b/Source/WebKit/chromium/public/WebBatteryStatusClient.h
new file mode 100644
index 000000000..1a2a15b00
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebBatteryStatusClient.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebBatteryStatusClient_h
+#define WebBatteryStatusClient_h
+
+namespace WebKit {
+
+class WebBatteryStatusClient {
+public:
+ virtual ~WebBatteryStatusClient() { }
+
+ virtual void startUpdating() = 0;
+ virtual void stopUpdating() = 0;
+};
+
+} // namespace WebKit
+
+#endif // WebBatteryStatusClient_h
diff --git a/Source/WebKit/chromium/public/WebCompositor.h b/Source/WebKit/chromium/public/WebCompositor.h
index 32b60e284..3eadef32c 100644
--- a/Source/WebKit/chromium/public/WebCompositor.h
+++ b/Source/WebKit/chromium/public/WebCompositor.h
@@ -26,7 +26,6 @@
#ifndef WebCompositor_h
#define WebCompositor_h
-#include "WebCompositorInputHandler.h"
#include "platform/WebCommon.h"
namespace WebKit {
@@ -34,16 +33,11 @@ namespace WebKit {
class WebInputEvent;
class WebThread;
-#define WEBCOMPOSITOR_HAS_INITIALIZE
-
// This class contains global routines for interacting with the
// compositor.
//
// All calls to the WebCompositor must be made from the main thread.
-//
-// This class currently temporarily inherits from WebCompositorInputHandler
-// while we migrate downstream code to use WebCompositorInputHandler directly.
-class WebCompositor : public WebCompositorInputHandler {
+class WebCompositor {
public:
// Initializes the compositor. Threaded compositing is enabled by passing in
// a non-null WebThread. No compositor classes or methods should be used
diff --git a/Source/WebKit/chromium/public/WebCompositorInputHandler.h b/Source/WebKit/chromium/public/WebCompositorInputHandler.h
index bc58748bd..557da6772 100644
--- a/Source/WebKit/chromium/public/WebCompositorInputHandler.h
+++ b/Source/WebKit/chromium/public/WebCompositorInputHandler.h
@@ -30,7 +30,6 @@
namespace WebKit {
-class WebCompositor;
class WebCompositorInputHandlerClient;
class WebInputEvent;
class WebThread;
@@ -41,7 +40,7 @@ class WebCompositorInputHandler {
public:
// The return value is temporarily WebCompositor until all downstream code
// is switched to use WebCompositorInputHandler.
- WEBKIT_EXPORT static WebCompositor* fromIdentifier(int);
+ WEBKIT_EXPORT static WebCompositorInputHandler* fromIdentifier(int);
virtual void setClient(WebCompositorInputHandlerClient*) = 0;
virtual void handleInputEvent(const WebInputEvent&) = 0;
diff --git a/Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h b/Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h
index e8bb55598..7c911d8f8 100644
--- a/Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h
+++ b/Source/WebKit/chromium/public/WebCompositorInputHandlerClient.h
@@ -28,6 +28,8 @@
namespace WebKit {
+struct WebActiveWheelFlingParameters;
+
class WebCompositorInputHandlerClient {
public:
// Callbacks invoked from the compositor thread.
@@ -42,6 +44,10 @@ public:
// should be forwarded to the WebWidget associated with this compositor for further processing.
virtual void didNotHandleInputEvent(bool sendToWidget) = 0;
+ // Transfers an active wheel fling animation initiated by a previously handled input event out to the client.
+ // FIXME: Make pure virtual once implementation lands on Chromium side.
+ virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) { }
+
protected:
virtual ~WebCompositorInputHandlerClient() { }
};
diff --git a/Source/WebKit/chromium/public/WebContextMenuData.h b/Source/WebKit/chromium/public/WebContextMenuData.h
index e72a434db..a36372192 100644
--- a/Source/WebKit/chromium/public/WebContextMenuData.h
+++ b/Source/WebKit/chromium/public/WebContextMenuData.h
@@ -34,8 +34,8 @@
#include "WebHistoryItem.h"
#include "WebMenuItemInfo.h"
#include "WebNode.h"
-#include "WebReferrerPolicy.h"
#include "platform/WebPoint.h"
+#include "platform/WebReferrerPolicy.h"
#include "platform/WebString.h"
#include "platform/WebURL.h"
#include "platform/WebVector.h"
diff --git a/Source/WebKit/chromium/public/WebDevToolsFrontendClient.h b/Source/WebKit/chromium/public/WebDevToolsFrontendClient.h
index c09f514c1..0438cd355 100644
--- a/Source/WebKit/chromium/public/WebDevToolsFrontendClient.h
+++ b/Source/WebKit/chromium/public/WebDevToolsFrontendClient.h
@@ -50,7 +50,8 @@ public:
virtual void requestSetDockSide(const WebString& side) { }
virtual void moveWindowBy(const WebFloatPoint&) { }
virtual void openInNewTab(const WebString& side) { }
- virtual void saveAs(const WebString& fileName, const WebString& content) { }
+ virtual void save(const WebString& url, const WebString& content, bool saveAs) { }
+ virtual void append(const WebString& url, const WebString& content) { }
protected:
virtual ~WebDevToolsFrontendClient() {}
diff --git a/Source/WebKit/chromium/public/WebDocument.h b/Source/WebKit/chromium/public/WebDocument.h
index 6725e79e1..6c0df31bc 100644
--- a/Source/WebKit/chromium/public/WebDocument.h
+++ b/Source/WebKit/chromium/public/WebDocument.h
@@ -33,6 +33,7 @@
#include "WebNode.h"
#include "WebSecurityOrigin.h"
+#include "platform/WebReferrerPolicy.h"
#include "platform/WebVector.h"
#if WEBKIT_IMPLEMENTATION
@@ -101,6 +102,7 @@ public:
WEBKIT_EXPORT void cancelFullScreen();
WEBKIT_EXPORT WebElement fullScreenElement() const;
WEBKIT_EXPORT WebDOMEvent createEvent(const WebString& eventType);
+ WEBKIT_EXPORT WebReferrerPolicy referrerPolicy() const;
// Accessibility support. These methods should only be called on the
// top-level document, because one accessibility cache spans all of
diff --git a/Source/WebKit/chromium/public/WebElement.h b/Source/WebKit/chromium/public/WebElement.h
index a3a06121d..84c43b251 100644
--- a/Source/WebKit/chromium/public/WebElement.h
+++ b/Source/WebKit/chromium/public/WebElement.h
@@ -38,7 +38,6 @@ namespace WebCore { class Element; }
#endif
namespace WebKit {
-class WebNamedNodeMap;
struct WebRect;
// Provides access to some properties of a DOM element node.
@@ -57,10 +56,12 @@ struct WebRect;
WEBKIT_EXPORT bool hasAttribute(const WebString&) const;
WEBKIT_EXPORT WebString getAttribute(const WebString&) const;
WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString& value);
- WEBKIT_EXPORT WebNamedNodeMap attributes() const;
WEBKIT_EXPORT WebString innerText();
WEBKIT_EXPORT WebDocument document() const;
WEBKIT_EXPORT void requestFullScreen();
+ WEBKIT_EXPORT WebString attributeLocalName(unsigned index) const;
+ WEBKIT_EXPORT WebString attributeValue(unsigned index) const;
+ WEBKIT_EXPORT unsigned attributeCount() const;
// Returns the language code specified for this element. This attribute
// is inherited, so the returned value is drawn from the closest parent
diff --git a/Source/WebKit/chromium/public/WebFileChooserCompletion.h b/Source/WebKit/chromium/public/WebFileChooserCompletion.h
index 14bace4c2..9b01d0e41 100644
--- a/Source/WebKit/chromium/public/WebFileChooserCompletion.h
+++ b/Source/WebKit/chromium/public/WebFileChooserCompletion.h
@@ -31,18 +31,36 @@
#ifndef WebFileChooserCompletion_h
#define WebFileChooserCompletion_h
+#include "platform/WebString.h"
+
namespace WebKit {
-class WebString;
template <typename T> class WebVector;
// Gets called back when WebViewClient finished choosing a file.
class WebFileChooserCompletion {
public:
+ struct SelectedFileInfo {
+ // The actual path of the selected file.
+ WebString path;
+
+ // The display name of the file that is to be exposed as File.name in
+ // the DOM layer. If it is empty the base part of the |path| is used.
+ WebString displayName;
+ };
+
// Called with zero or more file names. Zero-lengthed vector means that
// the user cancelled or that file choosing failed. The callback instance
// is destroyed when this method is called.
virtual void didChooseFile(const WebVector<WebString>& fileNames) = 0;
+
+ // Called with zero or more files, given as a vector of SelectedFileInfo.
+ // Zero-lengthed vector means that the user cancelled or that file
+ // choosing failed. The callback instance is destroyed when this method
+ // is called.
+ // FIXME: Deprecate either one of the didChooseFile (and rename it to
+ // didChooseFile*s*).
+ virtual void didChooseFile(const WebVector<SelectedFileInfo>&) { }
protected:
virtual ~WebFileChooserCompletion() {}
};
diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h
index 0d5406d52..da795ae8d 100644
--- a/Source/WebKit/chromium/public/WebFrame.h
+++ b/Source/WebKit/chromium/public/WebFrame.h
@@ -33,10 +33,10 @@
#include "WebIconURL.h"
#include "WebNode.h"
-#include "WebReferrerPolicy.h"
#include "WebURLLoaderOptions.h"
#include "platform/WebCanvas.h"
#include "platform/WebFileSystem.h"
+#include "platform/WebReferrerPolicy.h"
#include "platform/WebURL.h"
struct NPObject;
@@ -44,6 +44,8 @@ struct NPObject;
#if WEBKIT_USING_V8
namespace v8 {
class Context;
+class Function;
+class Object;
class Value;
template <class T> class Handle;
template <class T> class Local;
@@ -274,6 +276,18 @@ public:
virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
const WebScriptSource&) = 0;
+ virtual void executeScriptInIsolatedWorld(
+ int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
+ int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0;
+
+ // Call the function with the given receiver and arguments, bypassing
+ // canExecute().
+ virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled(
+ v8::Handle<v8::Function>,
+ v8::Handle<v8::Object>,
+ int argc,
+ v8::Handle<v8::Value> argv[]) = 0;
+
// Returns the V8 context for this frame, or an empty handle if there
// is none.
virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0;
@@ -436,6 +450,8 @@ public:
virtual void selectRange(const WebPoint& start, const WebPoint& end) = 0;
+ virtual void selectRange(const WebRange&) = 0;
+
// Printing ------------------------------------------------------------
diff --git a/Source/WebKit/chromium/public/WebFrameClient.h b/Source/WebKit/chromium/public/WebFrameClient.h
index fa6fc7a33..9270d1ab9 100644
--- a/Source/WebKit/chromium/public/WebFrameClient.h
+++ b/Source/WebKit/chromium/public/WebFrameClient.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -63,6 +63,8 @@ class WebMediaPlayerClient;
class WebNode;
class WebPlugin;
class WebSharedWorker;
+class WebSharedWorkerClient;
+class WebSocketStreamHandle;
class WebStorageQuotaCallbacks;
class WebString;
class WebURL;
@@ -70,7 +72,6 @@ class WebURLLoader;
class WebURLRequest;
class WebURLResponse;
class WebWorker;
-class WebSharedWorkerClient;
struct WebPluginParams;
struct WebRect;
struct WebSize;
@@ -284,10 +285,6 @@ public:
// A reflected XSS was encountered in the page and suppressed.
virtual void didDetectXSS(WebFrame*, const WebURL&, bool didBlockEntirePage) { }
- // This frame adopted the resource that is being loaded. This happens when
- // an iframe, that is loading a subresource, is transferred between windows.
- virtual void didAdoptURLLoader(WebURLLoader*) { }
-
// Script notifications ------------------------------------------------
// Script in the page tried to allocate too much memory.
@@ -385,6 +382,11 @@ public:
// object to coordinate replies to the intent invocation.
virtual void dispatchIntent(WebFrame*, const WebIntentRequest&) { }
+ // WebSocket -----------------------------------------------------
+
+ // A WebSocket object is going to open new stream connection.
+ virtual void willOpenSocketStream(WebSocketStreamHandle*) { }
+
// Messages ------------------------------------------------------
// Notifies the embedder that a postMessage was issued on this frame, and
diff --git a/Source/WebKit/chromium/public/WebHitTestResult.h b/Source/WebKit/chromium/public/WebHitTestResult.h
new file mode 100644
index 000000000..8fb9838a4
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebHitTestResult.h
@@ -0,0 +1,71 @@
+/*
+* Copyright (C) 2012 Google Inc. All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions
+* are met:
+*
+* 1. Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebHitTestResult_h
+#define WebHitTestResult_h
+
+#include "platform/WebPrivateOwnPtr.h"
+
+namespace WebCore {
+class HitTestResult;
+}
+
+namespace WebKit {
+
+class WebNode;
+struct WebPoint;
+
+// Properties of a hit test result, i.e. properties of the nodes at a given point
+// (the hit point) on the page. Both urls may be populated at the same time, for
+// example in the instance of an <img> inside an <a>.
+class WebHitTestResult {
+public:
+ WebHitTestResult() { }
+ WebHitTestResult(const WebHitTestResult& info) { assign(info); }
+ ~WebHitTestResult() { reset(); }
+
+ WEBKIT_EXPORT void assign(const WebHitTestResult&);
+ WEBKIT_EXPORT void reset();
+ WEBKIT_EXPORT bool isNull() const;
+
+ // The node that was hit (only one for point-based tests).
+ WEBKIT_EXPORT WebNode node() const;
+
+ // Coordinates of the point that was hit. Relative to the node.
+ WEBKIT_EXPORT WebPoint localPoint() const;
+
+#if WEBKIT_IMPLEMENTATION
+ WebHitTestResult(const WebCore::HitTestResult&);
+ WebHitTestResult& operator=(const WebCore::HitTestResult&);
+ operator WebCore::HitTestResult() const;
+#endif
+
+protected:
+ WebPrivateOwnPtr<WebCore::HitTestResult> m_private;
+};
+
+} // namespace WebKit
+
+#endif
diff --git a/Source/WebKit/chromium/public/WebIDBCursor.h b/Source/WebKit/chromium/public/WebIDBCursor.h
index 96b1765d8..4e23f0702 100644
--- a/Source/WebKit/chromium/public/WebIDBCursor.h
+++ b/Source/WebKit/chromium/public/WebIDBCursor.h
@@ -62,6 +62,7 @@ public:
}
virtual void update(const WebSerializedScriptValue&, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void advance(unsigned long, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void continueFunction(const WebIDBKey&, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void deleteFunction(WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void prefetchContinue(int numberToFetch, WebIDBCallbacks*, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
diff --git a/Source/WebKit/chromium/public/WebIDBDatabase.h b/Source/WebKit/chromium/public/WebIDBDatabase.h
index ff8e1ca4a..f53b02e39 100644
--- a/Source/WebKit/chromium/public/WebIDBDatabase.h
+++ b/Source/WebKit/chromium/public/WebIDBDatabase.h
@@ -28,6 +28,7 @@
#include "WebDOMStringList.h"
#include "WebExceptionCode.h"
+#include "WebIDBKeyPath.h"
#include "platform/WebCommon.h"
namespace WebKit {
@@ -58,7 +59,13 @@ public:
WEBKIT_ASSERT_NOT_REACHED();
return WebDOMStringList();
}
- virtual WebIDBObjectStore* createObjectStore(const WebString& name, const WebString& keyPath, bool autoIncrement, const WebIDBTransaction&, WebExceptionCode&)
+ // FIXME: Remove WebString keyPath overload once callers are updated.
+ // http://webkit.org/b/84207
+ virtual WebIDBObjectStore* createObjectStore(const WebString& name, const WebString& keyPath, bool autoIncrement, const WebIDBTransaction& transaction, WebExceptionCode& ec)
+ {
+ return createObjectStore(name, WebIDBKeyPath(keyPath), autoIncrement, transaction, ec);
+ }
+ virtual WebIDBObjectStore* createObjectStore(const WebString&, const WebIDBKeyPath&, bool, const WebIDBTransaction&, WebExceptionCode&)
{
WEBKIT_ASSERT_NOT_REACHED();
return 0;
diff --git a/Source/WebKit/chromium/public/WebReferrerPolicy.h b/Source/WebKit/chromium/public/WebIDBDatabaseException.h
index 82710fb22..81b838667 100644
--- a/Source/WebKit/chromium/public/WebReferrerPolicy.h
+++ b/Source/WebKit/chromium/public/WebIDBDatabaseException.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,18 +28,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebReferrerPolicy_h
-#define WebReferrerPolicy_h
+#ifndef WebIDBDatabaseException_h
+#define WebIDBDatabaseException_h
namespace WebKit {
-enum WebReferrerPolicy {
- WebReferrerPolicyAlways,
- WebReferrerPolicyDefault,
- WebReferrerPolicyNever,
- WebReferrerPolicyOrigin,
+enum WebIDBDatabaseException {
+ WebIDBDatabaseExceptionDataError = 1205,
+ WebIDBDatabaseExceptionQuotaError = 1211,
};
} // namespace WebKit
-#endif
+#endif // WebIDBDatabaseException_h
diff --git a/Source/WebKit/chromium/public/WebIDBIndex.h b/Source/WebKit/chromium/public/WebIDBIndex.h
index b7f526d76..37af02c0c 100644
--- a/Source/WebKit/chromium/public/WebIDBIndex.h
+++ b/Source/WebKit/chromium/public/WebIDBIndex.h
@@ -27,6 +27,7 @@
#define WebIDBIndex_h
#include "WebExceptionCode.h"
+#include "WebIDBKeyPath.h"
#include "WebIDBTransaction.h"
#include "platform/WebString.h"
@@ -51,7 +52,13 @@ public:
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
- virtual WebString keyPath() const
+ virtual WebIDBKeyPath keyPath() const
+ {
+ return WebIDBKeyPath(keyPathString());
+ }
+ // FIXME: Remove method once callers are updated.
+ // http://webkit.org/b/84207
+ virtual WebString keyPathString() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
@@ -70,8 +77,8 @@ public:
virtual void openObjectCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void openKeyCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void count(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
- virtual void getObject(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
- virtual void getKey(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void getObject(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void getKey(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
protected:
WebIDBIndex() {}
diff --git a/Source/WebKit/chromium/public/WebIDBKeyPath.h b/Source/WebKit/chromium/public/WebIDBKeyPath.h
index 4c7259f03..97bac06ff 100644
--- a/Source/WebKit/chromium/public/WebIDBKeyPath.h
+++ b/Source/WebKit/chromium/public/WebIDBKeyPath.h
@@ -28,6 +28,7 @@
#include "platform/WebCommon.h"
#include "platform/WebPrivateOwnPtr.h"
+#include "platform/WebString.h"
#include "platform/WebVector.h"
namespace WTF {
@@ -37,14 +38,29 @@ class String;
namespace WebKit {
-class WebString;
-
class WebIDBKeyPath {
public:
WEBKIT_EXPORT static WebIDBKeyPath create(const WebString&);
- WebIDBKeyPath(const WebIDBKeyPath& keyPath) { assign(keyPath); }
+ WEBKIT_EXPORT static WebIDBKeyPath create(const WebVector<WebString>&);
+ WEBKIT_EXPORT static WebIDBKeyPath createNull();
+ WEBKIT_EXPORT WebIDBKeyPath(const WebIDBKeyPath&);
~WebIDBKeyPath() { reset(); }
+ enum Type {
+ NullType = 0,
+ StringType,
+ ArrayType,
+ };
+
+ WEBKIT_EXPORT bool isValid() const;
+ WEBKIT_EXPORT Type type() const;
+ // FIXME: Array-type key paths not yet supported. http://webkit.org/b/84207
+ WebVector<WebString> array() const { WEBKIT_ASSERT_NOT_REACHED(); return WebVector<WebString>(); }
+ WEBKIT_EXPORT WebString string() const;
+
+ // FIXME: Remove these once callers are updated. http://webkit.org/b/84207
+ WEBKIT_EXPORT WebIDBKeyPath(const WebString&);
+ operator const WebString () const { return string(); }
WEBKIT_EXPORT int parseError() const;
WEBKIT_EXPORT void assign(const WebIDBKeyPath&);
WEBKIT_EXPORT void reset();
diff --git a/Source/WebKit/chromium/public/WebIDBObjectStore.h b/Source/WebKit/chromium/public/WebIDBObjectStore.h
index 981f5ec7e..dcf485692 100644
--- a/Source/WebKit/chromium/public/WebIDBObjectStore.h
+++ b/Source/WebKit/chromium/public/WebIDBObjectStore.h
@@ -29,6 +29,7 @@
#include "WebExceptionCode.h"
#include "WebDOMStringList.h"
#include "WebIDBCallbacks.h"
+#include "WebIDBKeyPath.h"
#include "WebIDBTransaction.h"
#include "platform/WebCommon.h"
#include "platform/WebString.h"
@@ -48,7 +49,11 @@ public:
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
}
- virtual WebString keyPath() const
+ virtual WebIDBKeyPath keyPath() const
+ {
+ return WebIDBKeyPath(keyPathString());
+ }
+ virtual WebString keyPathString() const
{
WEBKIT_ASSERT_NOT_REACHED();
return WebString();
@@ -59,7 +64,7 @@ public:
return WebDOMStringList();
}
- virtual void get(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void get(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
enum PutMode {
AddOrUpdate,
@@ -71,8 +76,15 @@ public:
virtual void deleteFunction(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void deleteFunction(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
virtual void clear(WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); }
+
+ // FIXME: Remove WebString keyPath overload once callers are updated.
+ // http://webkit.org/b/84207
virtual WebIDBIndex* createIndex(const WebString& name, const WebString& keyPath, bool unique, bool multiEntry, const WebIDBTransaction& transaction, WebExceptionCode& ec)
{
+ return createIndex(name, WebIDBKeyPath(keyPath), unique, multiEntry, transaction, ec);
+ }
+ virtual WebIDBIndex* createIndex(const WebString&, const WebIDBKeyPath&, bool, bool, const WebIDBTransaction&, WebExceptionCode&)
+ {
WEBKIT_ASSERT_NOT_REACHED();
return 0;
}
diff --git a/Source/WebKit/chromium/public/WebInputElement.h b/Source/WebKit/chromium/public/WebInputElement.h
index 3d1ffb6e0..b1c407c59 100644
--- a/Source/WebKit/chromium/public/WebInputElement.h
+++ b/Source/WebKit/chromium/public/WebInputElement.h
@@ -39,6 +39,8 @@ namespace WebCore { class HTMLInputElement; }
namespace WebKit {
+ class WebNodeCollection;
+
// Provides readonly access to some properties of a DOM input element node.
class WebInputElement : public WebFormControlElement {
public:
@@ -83,6 +85,9 @@ namespace WebKit {
WEBKIT_EXPORT int selectionEnd() const;
WEBKIT_EXPORT bool isValidValue(const WebString&) const;
WEBKIT_EXPORT bool isChecked() const;
+ WEBKIT_EXPORT bool isMultiple() const;
+
+ WEBKIT_EXPORT WebNodeCollection dataListOptions() const;
WEBKIT_EXPORT bool isSpeechInputEnabled() const;
WEBKIT_EXPORT SpeechInputState getSpeechInputState() const;
diff --git a/Source/WebKit/chromium/public/WebInputEvent.h b/Source/WebKit/chromium/public/WebInputEvent.h
index e42e45134..d5d6394f8 100644
--- a/Source/WebKit/chromium/public/WebInputEvent.h
+++ b/Source/WebKit/chromium/public/WebInputEvent.h
@@ -45,16 +45,23 @@ namespace WebKit {
// WARNING! These classes must remain PODs (plain old data). They are
// intended to be "serializable" by copying their raw bytes, so they must
// not contain any non-bit-copyable member variables!
+//
+// Furthermore, the class members need to be packed so they are aligned
+// properly and don't have paddings/gaps, otherwise memory check tools
+// like Valgrind will complain about uninitialized memory usage when
+// transferring these classes over the wire.
+
+#pragma pack(push, 4)
// WebInputEvent --------------------------------------------------------------
class WebInputEvent {
public:
WebInputEvent(unsigned sizeParam = sizeof(WebInputEvent))
- : size(sizeParam)
+ : timeStampSeconds(0.0)
+ , size(sizeParam)
, type(Undefined)
- , modifiers(0)
- , timeStampSeconds(0.0) { }
+ , modifiers(0) { }
// When we use an input method (or an input method editor), we receive
// two events for a keypress. The former event is a keydown, which
@@ -109,6 +116,7 @@ public:
GestureTap,
GestureTapDown,
GestureDoubleTap,
+ GestureLongPress,
GesturePinchBegin,
GesturePinchEnd,
GesturePinchUpdate,
@@ -145,10 +153,10 @@ public:
static const int InputModifiers = ShiftKey | ControlKey | AltKey | MetaKey;
- unsigned size; // The size of this structure, for serialization.
+ double timeStampSeconds; // Seconds since epoch.
+ unsigned size; // The size of this structure, for serialization.
Type type;
int modifiers;
- double timeStampSeconds; // Seconds since epoch.
// Returns true if the WebInputEvent |type| is a mouse event.
static bool isMouseEventType(int type)
@@ -197,6 +205,7 @@ public:
|| type == GestureScrollUpdate
|| type == GestureFlingStart
|| type == GestureFlingCancel
+ || type == GestureTapDown
|| type == GestureTap; // FIXME: Why is GestureTap on this list?
}
};
@@ -225,6 +234,14 @@ public:
// doesn't hurt to have this one around.
int nativeKeyCode;
+ // This identifies whether this event was tagged by the system as being
+ // a "system key" event (see
+ // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for
+ // details). Other platforms don't have this concept, but it's just
+ // easier to leave it always false than ifdef.
+ // See comment at the top of the file for why an int is used here.
+ bool isSystemKey;
+
// |text| is the text generated by this keystroke. |unmodifiedText| is
// |text|, but unmodified by an concurrently-held modifiers (except
// shift). This is useful for working out shortcut keys. Linux and
@@ -237,17 +254,6 @@ public:
// This is a string identifying the key pressed.
char keyIdentifier[keyIdentifierLengthCap];
- // This identifies whether this event was tagged by the system as being
- // a "system key" event (see
- // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for
- // details). Other platforms don't have this concept, but it's just
- // easier to leave it always false than ifdef.
- // int is used instead of bool to ensure the size of this structure is
- // strictly aligned to a factor of 4 bytes, otherwise memory check tools
- // like valgrind may complain about uninitialized memory usage when
- // transfering it over the wire.
- int isSystemKey;
-
WebKeyboardEvent(unsigned sizeParam = sizeof(WebKeyboardEvent))
: WebInputEvent(sizeParam)
, windowsKeyCode(0)
@@ -322,13 +328,11 @@ public:
float wheelTicksX;
float wheelTicksY;
- // int is used instead of bool to ensure the size of this structure is
- // strictly aligned to a factor of 4 bytes, otherwise memory check tools
- // like valgrind may complain about uninitialized memory usage when
- // transfering it over the wire.
+ // See comment at the top of the file for why an int is used here.
int scrollByPage;
- bool hasPreciseScrollingDeltas;
+ // See comment at the top of the file for why an int is used here.
+ int hasPreciseScrollingDeltas;
Phase phase;
Phase momentumPhase;
@@ -355,9 +359,11 @@ public:
int globalX;
int globalY;
- // NOTE: |deltaX| and |deltaY| represents the amount to scroll for Scroll gesture events. For Pinch gesture events, |deltaX| represents the scaling/magnification factor.
+ // NOTE: |deltaX| and |deltaY| represents the amount to scroll for Scroll gesture events. For Pinch gesture events, |deltaX| represents the scaling/magnification factor. For Tap and Press events, |deltaX|,|deltaY| and |gammaX|,|gammaY| correspond to the top left and bottom right corners of the ellipse's enlosing rectangle for tap target fuzzing.
float deltaX;
float deltaY;
+ float gammaX;
+ float gammaY;
WebGestureEvent(unsigned sizeParam = sizeof(WebGestureEvent))
: WebInputEvent(sizeParam)
@@ -367,6 +373,8 @@ public:
, globalY(0)
, deltaX(0.0f)
, deltaY(0.0f)
+ , gammaX(0.0f)
+ , gammaY(0.0f)
{
}
};
@@ -398,6 +406,8 @@ public:
}
};
+#pragma pack(pop)
+
} // namespace WebKit
#endif
diff --git a/Source/WebKit/chromium/public/WebIntent.h b/Source/WebKit/chromium/public/WebIntent.h
index d01098fe5..cc080ad99 100644
--- a/Source/WebKit/chromium/public/WebIntent.h
+++ b/Source/WebKit/chromium/public/WebIntent.h
@@ -31,9 +31,12 @@
#ifndef WebIntent_h
#define WebIntent_h
+#include "WebMessagePortChannel.h"
#include "platform/WebCommon.h"
#include "platform/WebPrivatePtr.h"
#include "platform/WebString.h"
+#include "platform/WebURL.h"
+#include "platform/WebVector.h"
namespace WebCore { class Intent; }
@@ -61,6 +64,19 @@ public:
WEBKIT_EXPORT WebString action() const;
WEBKIT_EXPORT WebString type() const;
WEBKIT_EXPORT WebString data() const;
+ WEBKIT_EXPORT WebURL service() const;
+
+ // Retrieve a list of the names of extra metadata associated with the
+ // intent.
+ WEBKIT_EXPORT WebVector<WebString> extrasNames() const;
+
+ // Retrieve the value of an extra metadata element. The argument should
+ // be one of the names retrieved with |extrasNames|. Returns an empty
+ // string if the name is invalid.
+ WEBKIT_EXPORT WebString extrasValue(const WebString&) const;
+
+ // Caller takes ownership of the ports.
+ WEBKIT_EXPORT WebMessagePortChannelArray* messagePortChannelsRelease() const;
#if WEBKIT_IMPLEMENTATION
WebIntent(const WTF::PassRefPtr<WebCore::Intent>&);
diff --git a/Source/WebKit/chromium/public/WebMediaPlayer.h b/Source/WebKit/chromium/public/WebMediaPlayer.h
index 239134963..a2a9fb9b4 100644
--- a/Source/WebKit/chromium/public/WebMediaPlayer.h
+++ b/Source/WebKit/chromium/public/WebMediaPlayer.h
@@ -31,9 +31,10 @@
#ifndef WebMediaPlayer_h
#define WebMediaPlayer_h
+#include "WebTimeRange.h"
#include "WebVideoFrame.h"
#include "platform/WebCanvas.h"
-#include "platform/WebVector.h"
+#include "platform/WebString.h"
namespace WebKit {
@@ -41,57 +42,62 @@ class WebAudioSourceProvider;
class WebAudioSourceProviderClient;
class WebMediaPlayerClient;
class WebStreamTextureClient;
+class WebString;
class WebURL;
struct WebRect;
struct WebSize;
-struct WebTimeRange {
- WebTimeRange() : start(0), end(0) {}
- WebTimeRange(float s, float e) : start(s), end(e) {}
-
- float start;
- float end;
-};
-
-typedef WebVector<WebTimeRange> WebTimeRanges;
-
class WebMediaPlayer {
public:
enum NetworkState {
- Empty,
- Idle,
- Loading,
- Loaded,
- FormatError,
- NetworkError,
- DecodeError,
+ NetworkStateEmpty,
+ NetworkStateIdle,
+ NetworkStateLoading,
+ NetworkStateLoaded,
+ NetworkStateFormatError,
+ NetworkStateNetworkError,
+ NetworkStateDecodeError,
};
enum ReadyState {
- HaveNothing,
- HaveMetadata,
- HaveCurrentData,
- HaveFutureData,
- HaveEnoughData,
+ ReadyStateHaveNothing,
+ ReadyStateHaveMetadata,
+ ReadyStateHaveCurrentData,
+ ReadyStateHaveFutureData,
+ ReadyStateHaveEnoughData,
};
enum MovieLoadType {
- Unknown,
- Download,
- StoredStream,
- LiveStream,
+ MovieLoadTypeUnknown,
+ MovieLoadTypeDownload,
+ MovieLoadTypeStoredStream,
+ MovieLoadTypeLiveStream,
};
enum Preload {
- None,
- MetaData,
- Auto,
+ PreloadNone,
+ PreloadMetaData,
+ PreloadAuto,
+ };
+
+ enum AddIdStatus {
+ AddIdStatusOk,
+ AddIdStatusNotSupported,
+ AddIdStatusReachedIdLimit
};
enum EndOfStreamStatus {
- EosNoError,
- EosNetworkError,
- EosDecodeError,
+ EndOfStreamStatusNoError,
+ EndOfStreamStatusNetworkError,
+ EndOfStreamStatusDecodeError,
+ };
+
+ // Represents synchronous exceptions that can be thrown from the Encrypted
+ // Media methods. This is different from the asynchronous MediaKeyError.
+ enum MediaKeyException {
+ MediaKeyExceptionNoError,
+ MediaKeyExceptionInvalidPlayerState,
+ MediaKeyExceptionKeySystemNotSupported,
};
virtual ~WebMediaPlayer() {}
@@ -116,7 +122,7 @@ public:
virtual void setSize(const WebSize&) = 0;
- virtual void paint(WebCanvas*, const WebRect&) = 0;
+ virtual void paint(WebCanvas*, const WebRect&, uint8_t alpha) = 0;
// True if the loaded media has a playable video/audio track.
virtual bool hasVideo() const = 0;
@@ -167,8 +173,21 @@ public:
virtual WebAudioSourceProvider* audioSourceProvider() { return 0; }
+ virtual AddIdStatus sourceAddId(const WebString& id, const WebString& type) { return AddIdStatusNotSupported; }
+ virtual bool sourceRemoveId(const WebString& id) { return false; }
virtual bool sourceAppend(const unsigned char* data, unsigned length) { return false; }
virtual void sourceEndOfStream(EndOfStreamStatus) { }
+
+ // Returns whether keySystem is supported. If true, the result will be
+ // reported by an event.
+ virtual MediaKeyException generateKeyRequest(const WebString& keySystem, const unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionKeySystemNotSupported; }
+ virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
+ virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
+
+ // Instuct WebMediaPlayer to enter/exit fullscreen.
+ // Returns true if the player can enter fullscreen.
+ virtual bool enterFullscreen() { return false; }
+ virtual void exitFullscreen() { }
};
} // namespace WebKit
diff --git a/Source/WebKit/chromium/public/WebMediaPlayerClient.h b/Source/WebKit/chromium/public/WebMediaPlayerClient.h
index 19ea242ec..786bf5aa7 100644
--- a/Source/WebKit/chromium/public/WebMediaPlayerClient.h
+++ b/Source/WebKit/chromium/public/WebMediaPlayerClient.h
@@ -40,6 +40,21 @@ class WebURL;
class WebMediaPlayerClient {
public:
+ enum MediaKeyErrorCode {
+ MediaKeyErrorCodeUnknown = 1,
+ MediaKeyErrorCodeClient,
+ MediaKeyErrorCodeService,
+ MediaKeyErrorCodeOutput,
+ MediaKeyErrorCodeHardwareChange,
+ MediaKeyErrorCodeDomain,
+ UnknownError = MediaKeyErrorCodeUnknown,
+ ClientError = MediaKeyErrorCodeClient,
+ ServiceError = MediaKeyErrorCodeService,
+ OutputError = MediaKeyErrorCodeOutput,
+ HardwareChangeError = MediaKeyErrorCodeHardwareChange,
+ DomainError = MediaKeyErrorCodeDomain,
+ };
+
virtual void networkStateChanged() = 0;
virtual void readyStateChanged() = 0;
virtual void volumeChanged(float) = 0;
@@ -56,6 +71,10 @@ public:
virtual WebMediaPlayer::Preload preload() const = 0;
virtual void sourceOpened() = 0;
virtual WebKit::WebURL sourceURL() const = 0;
+ virtual void keyAdded(const WebString&, const WebString&) = 0;
+ virtual void keyError(const WebString&, const WebString&, MediaKeyErrorCode, unsigned short systemCode) = 0;
+ virtual void keyMessage(const WebString&, const WebString&, const unsigned char*, unsigned) = 0;
+ virtual void keyNeeded(const WebString&, const WebString&, const unsigned char* initData, unsigned initDataLength) = 0;
virtual void disableAcceleratedCompositing() = 0;
protected:
~WebMediaPlayerClient() { }
diff --git a/Source/WebKit/chromium/public/WebNodeCollection.h b/Source/WebKit/chromium/public/WebNodeCollection.h
index 9707e17fb..b168b6d5b 100644
--- a/Source/WebKit/chromium/public/WebNodeCollection.h
+++ b/Source/WebKit/chromium/public/WebNodeCollection.h
@@ -54,6 +54,8 @@ public:
return *this;
}
+ bool isNull() const { return !m_private; }
+
WEBKIT_EXPORT void reset();
WEBKIT_EXPORT void assign(const WebNodeCollection&);
diff --git a/Source/WebKit/chromium/public/WebPageVisibilityState.h b/Source/WebKit/chromium/public/WebPageVisibilityState.h
index be7705c0d..8eb867fa2 100644
--- a/Source/WebKit/chromium/public/WebPageVisibilityState.h
+++ b/Source/WebKit/chromium/public/WebPageVisibilityState.h
@@ -38,7 +38,8 @@ namespace WebKit {
enum WebPageVisibilityState {
WebPageVisibilityStateVisible,
WebPageVisibilityStateHidden,
- WebPageVisibilityStatePrerender
+ WebPageVisibilityStatePrerender,
+ WebPageVisibilityStatePreview
};
} // namespace WebKit
diff --git a/Source/WebKit/chromium/public/WebAttribute.h b/Source/WebKit/chromium/public/WebPrerendererClient.h
index ff4b3a7f8..fd148e5e8 100644
--- a/Source/WebKit/chromium/public/WebAttribute.h
+++ b/Source/WebKit/chromium/public/WebPrerendererClient.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -26,49 +26,23 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
*/
-#ifndef WebAttribute_h
-#define WebAttribute_h
+#ifndef WebPrerendererClient_h
+#define WebPrerendererClient_h
#include "platform/WebCommon.h"
-#include "platform/WebPrivatePtr.h"
-
-namespace WebCore { class Attribute; }
-#if WEBKIT_IMPLEMENTATION
-namespace WTF { template <typename T> class PassRefPtr; }
-#endif
namespace WebKit {
-class WebString;
-
-// Provides readonly access to some properties of a DOM attribute.
-class WebAttribute {
-public:
- ~WebAttribute() { reset(); }
- WebAttribute() { }
- WebAttribute(const WebAttribute& n) { assign(n); }
- WebAttribute& operator=(const WebAttribute& n)
- {
- assign(n);
- return *this;
- }
+class WebPrerender;
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebAttribute&);
-
- WEBKIT_EXPORT WebString localName() const;
- WEBKIT_EXPORT WebString value() const;
-
-#if WEBKIT_IMPLEMENTATION
- WebAttribute(const WTF::PassRefPtr<WebCore::Attribute>&);
-#endif
-
-private:
- WebPrivatePtr<WebCore::Attribute> m_private;
+class WebPrerendererClient {
+public:
+ virtual void willAddPrerender(WebPrerender*) = 0;
};
-} // namespace WebKit
+} // namespace WebPrerendererClient_h
-#endif
+#endif // WebPrerendererClient_h
diff --git a/Source/WebKit/chromium/public/WebNamedNodeMap.h b/Source/WebKit/chromium/public/WebPrintScalingOption.h
index 796c8d164..95dbb8984 100644
--- a/Source/WebKit/chromium/public/WebNamedNodeMap.h
+++ b/Source/WebKit/chromium/public/WebPrintScalingOption.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,45 +28,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebNamedNodeMap_h
-#define WebNamedNodeMap_h
-
-#include "platform/WebCommon.h"
-#include "platform/WebPrivatePtr.h"
-
-namespace WebCore { class NamedNodeMap; }
-#if WEBKIT_IMPLEMENTATION
-namespace WTF { template <typename T> class PassRefPtr; }
-#endif
+#ifndef WebPrintScalingOption_h
+#define WebPrintScalingOption_h
namespace WebKit {
-class WebAttribute;
-
-// Provides readonly access to some properties of a DOM attribute map.
-class WebNamedNodeMap {
-public:
- ~WebNamedNodeMap() { reset(); }
-
- WebNamedNodeMap() { }
- WebNamedNodeMap(const WebNamedNodeMap& n) { assign(n); }
- WebNamedNodeMap& operator=(const WebNamedNodeMap& n)
- {
- assign(n);
- return *this;
- }
-
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebNamedNodeMap&);
-
- WEBKIT_EXPORT unsigned length() const;
- WEBKIT_EXPORT WebAttribute attributeItem(unsigned) const;
-
-#if WEBKIT_IMPLEMENTATION
- WebNamedNodeMap(const WTF::PassRefPtr<WebCore::NamedNodeMap>&);
-#endif
-private:
- WebPrivatePtr<WebCore::NamedNodeMap> m_private;
+enum WebPrintScalingOption {
+ WebPrintScalingOptionNone, // Prints the upper left of a page without scaling. Crop the page contents that don't fit on the paper.
+ WebPrintScalingOptionFitToPrintableArea, // Reduces or enlarges each page to fit the printable area of the selected printer paper size.
+ WebPrintScalingOptionSourceSize, // Print output page size is same as the actual source page size. Do not scale/center/fit to printable area.
};
} // namespace WebKit
diff --git a/Source/WebKit/chromium/public/WebRange.h b/Source/WebKit/chromium/public/WebRange.h
index 907dfd563..37f05ec60 100644
--- a/Source/WebKit/chromium/public/WebRange.h
+++ b/Source/WebKit/chromium/public/WebRange.h
@@ -32,6 +32,7 @@
#define WebRange_h
#include "platform/WebCommon.h"
+#include "platform/WebVector.h"
#if WEBKIT_IMPLEMENTATION
namespace WebCore { class Range; }
@@ -40,6 +41,7 @@ namespace WTF { template <typename T> class PassRefPtr; }
namespace WebKit {
+struct WebFloatQuad;
class WebFrame;
class WebNode;
class WebRangePrivate;
@@ -73,6 +75,8 @@ public:
WEBKIT_EXPORT static WebRange fromDocumentRange(WebFrame*, int start, int length);
+ WEBKIT_EXPORT WebVector<WebFloatQuad> textQuads() const;
+
#if WEBKIT_IMPLEMENTATION
WebRange(const WTF::PassRefPtr<WebCore::Range>&);
WebRange& operator=(const WTF::PassRefPtr<WebCore::Range>&);
diff --git a/Source/WebKit/chromium/public/WebRuntimeFeatures.h b/Source/WebKit/chromium/public/WebRuntimeFeatures.h
index 187ef0f55..0a954e164 100644
--- a/Source/WebKit/chromium/public/WebRuntimeFeatures.h
+++ b/Source/WebKit/chromium/public/WebRuntimeFeatures.h
@@ -109,6 +109,9 @@ public:
WEBKIT_EXPORT static void enableMediaStream(bool);
WEBKIT_EXPORT static bool isMediaStreamEnabled();
+ WEBKIT_EXPORT static void enablePeerConnection(bool);
+ WEBKIT_EXPORT static bool isPeerConnectionEnabled();
+
WEBKIT_EXPORT static void enableFullScreenAPI(bool);
WEBKIT_EXPORT static bool isFullScreenAPIEnabled();
@@ -118,6 +121,9 @@ public:
WEBKIT_EXPORT static void enableMediaSource(bool);
WEBKIT_EXPORT static bool isMediaSourceEnabled();
+ WEBKIT_EXPORT static void enableEncryptedMedia(bool);
+ WEBKIT_EXPORT static bool isEncryptedMediaEnabled();
+
WEBKIT_EXPORT static void enableVideoTrack(bool);
WEBKIT_EXPORT static bool isVideoTrackEnabled();
@@ -130,6 +136,9 @@ public:
WEBKIT_EXPORT static void enableStyleScoped(bool);
WEBKIT_EXPORT static bool isStyleScopedEnabled();
+ WEBKIT_EXPORT static void enableInputTypeDate(bool);
+ WEBKIT_EXPORT static bool isInputTypeDateEnabled();
+
private:
WebRuntimeFeatures();
};
diff --git a/Source/WebKit/chromium/public/WebScopedMicrotaskSuppression.h b/Source/WebKit/chromium/public/WebScopedMicrotaskSuppression.h
new file mode 100644
index 000000000..826db6955
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebScopedMicrotaskSuppression.h
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebScopedMicrotaskSuppression_h
+#define WebScopedMicrotaskSuppression_h
+
+#include "platform/WebPrivateOwnPtr.h"
+
+namespace WebKit {
+
+// This class wraps V8RecursionScope::BypassMicrotaskCheckpoint. Please
+// see V8RecursionScope.h for full usage. Short story: Embedder calls into
+// script contexts which also host page script must do one of two things:
+//
+// 1. If the call may cause any page/author script to run, it must be
+// captured for pre/post work (e.g. inspector instrumentation/microtask
+// delivery) and thus be invoked through WebFrame (e.g. executeScript*,
+// callFunction*).
+// 2. If the call will not cause any page/author script to run, the call
+// should be made directly via the v8 context, but the callsite must be
+// accompanied by a stack allocated WebScopedMicrotaskSuppression, e.g.:
+//
+// ...
+// {
+// WebKit::WebScopedMicrotaskSuppression suppression;
+// func->Call(global, argv, args);
+// }
+// ...
+//
+class WebScopedMicrotaskSuppression {
+public:
+ WebScopedMicrotaskSuppression() { initialize(); }
+ ~WebScopedMicrotaskSuppression() { reset(); }
+
+private:
+ WEBKIT_EXPORT void initialize();
+ WEBKIT_EXPORT void reset();
+
+#ifndef NDEBUG
+ class Impl;
+ WebPrivateOwnPtr<Impl> m_impl;
+#endif
+};
+
+} // WebKit
+
+#endif
diff --git a/Source/WebKit/chromium/public/WebSecurityPolicy.h b/Source/WebKit/chromium/public/WebSecurityPolicy.h
index 466d98684..5d9d3de06 100644
--- a/Source/WebKit/chromium/public/WebSecurityPolicy.h
+++ b/Source/WebKit/chromium/public/WebSecurityPolicy.h
@@ -31,8 +31,8 @@
#ifndef WebSecurityPolicy_h
#define WebSecurityPolicy_h
-#include "WebReferrerPolicy.h"
#include "platform/WebCommon.h"
+#include "platform/WebReferrerPolicy.h"
namespace WebKit {
@@ -64,6 +64,10 @@ public:
// Registers a non-HTTP URL scheme which can be sent CORS requests.
WEBKIT_EXPORT static void registerURLSchemeAsCORSEnabled(const WebString&);
+ // Registers a URL scheme as strictly empty documents, allowing them to
+ // commit synchronously.
+ WEBKIT_EXPORT static void registerURLSchemeAsEmptyDocument(const WebString&);
+
// Support for whitelisting access to origins beyond the same-origin policy.
WEBKIT_EXPORT static void addOriginAccessWhitelistEntry(
const WebURL& sourceOrigin, const WebString& destinationProtocol,
diff --git a/Source/WebKit/chromium/public/WebSettings.h b/Source/WebKit/chromium/public/WebSettings.h
index 47aaeece0..ec7d03785 100644
--- a/Source/WebKit/chromium/public/WebSettings.h
+++ b/Source/WebKit/chromium/public/WebSettings.h
@@ -98,6 +98,7 @@ public:
virtual void setWebAudioEnabled(bool) = 0;
virtual void setExperimentalWebGLEnabled(bool) = 0;
virtual void setExperimentalCSSRegionsEnabled(bool) = 0;
+ virtual void setExperimentalCSSCustomFilterEnabled(bool) = 0;
virtual void setOpenGLMultisamplingEnabled(bool) = 0;
virtual void setPrivilegedWebGLExtensionsEnabled(bool) = 0;
virtual void setWebGLErrorsToConsoleEnabled(bool) = 0;
@@ -110,8 +111,6 @@ public:
virtual void setAcceleratedCompositingEnabled(bool) = 0;
virtual void setForceCompositingMode(bool) = 0;
virtual void setMockScrollbarsEnabled(bool) = 0;
- virtual void setCompositeToTextureEnabled(bool) = 0;
- virtual bool compositeToTextureEnabled() const = 0;
virtual void setAcceleratedCompositingFor3DTransformsEnabled(bool) = 0;
virtual void setAcceleratedCompositingForVideoEnabled(bool) = 0;
virtual void setAcceleratedCompositingForCanvasEnabled(bool) = 0;
@@ -138,12 +137,15 @@ public:
virtual void setPasswordEchoDurationInSeconds(double) = 0;
virtual void setShouldPrintBackgrounds(bool) = 0;
virtual void setEnableScrollAnimator(bool) = 0;
+ virtual bool scrollAnimatorEnabled() const = 0;
virtual void setHixie76WebSocketProtocolEnabled(bool) = 0;
virtual void setVisualWordMovementEnabled(bool) = 0;
virtual void setAcceleratedPaintingEnabled(bool) = 0;
virtual void setPerTilePaintingEnabled(bool) = 0;
virtual void setPartialSwapEnabled(bool) = 0;
virtual void setThreadedAnimationEnabled(bool) = 0;
+ virtual void setViewportEnabled(bool) = 0;
+ virtual bool viewportEnabled() const = 0;
protected:
~WebSettings() { }
diff --git a/Source/WebKit/chromium/public/WebSpeechGrammar.h b/Source/WebKit/chromium/public/WebSpeechGrammar.h
new file mode 100644
index 000000000..d3c36523d
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechGrammar.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechGrammar_h
+#define WebSpeechGrammar_h
+
+#include "platform/WebCommon.h"
+#include "platform/WebPrivatePtr.h"
+#include "platform/WebURL.h"
+
+namespace WebCore {
+class SpeechGrammar;
+}
+
+namespace WebKit {
+
+class WebSpeechGrammar {
+public:
+ WebSpeechGrammar() { }
+ ~WebSpeechGrammar() { reset(); }
+
+ WEBKIT_EXPORT WebURL src() const;
+ WEBKIT_EXPORT float weight() const;
+
+ WEBKIT_EXPORT void reset();
+
+#if WEBKIT_IMPLEMENTATION
+ WebSpeechGrammar(const WTF::PassRefPtr<WebCore::SpeechGrammar>&);
+ WebSpeechGrammar& operator=(const WTF::PassRefPtr<WebCore::SpeechGrammar>&);
+#endif
+
+private:
+ WebPrivatePtr<WebCore::SpeechGrammar> m_private;
+};
+
+} // namespace WebKit
+
+#endif // WebSpeechGrammar_h
diff --git a/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h b/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h
new file mode 100644
index 000000000..fa3cb85bd
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechRecognitionHandle_h
+#define WebSpeechRecognitionHandle_h
+
+#include "platform/WebCommon.h"
+#include "platform/WebPrivatePtr.h"
+
+namespace WebCore {
+class SpeechRecognition;
+}
+
+namespace WebKit {
+
+class WebSpeechRecognitionResult;
+class WebString;
+
+// WebSpeechRecognitionHandle is used by WebSpeechRecognizer to identify a
+// recognition session, and by WebSpeechRecognizerClient to route
+// recognition events.
+class WebSpeechRecognitionHandle {
+public:
+ ~WebSpeechRecognitionHandle() { reset(); }
+ WebSpeechRecognitionHandle() { }
+
+ WebSpeechRecognitionHandle(const WebSpeechRecognitionHandle& other) { assign(other); }
+ WebSpeechRecognitionHandle& operator=(const WebSpeechRecognitionHandle& other)
+ {
+ assign(other);
+ return *this;
+ }
+
+ WEBKIT_EXPORT void reset();
+ WEBKIT_EXPORT void assign(const WebSpeechRecognitionHandle&);
+
+ // Comparison functions are provided so that WebSpeechRecognitionHandle objects
+ // can be stored in a hash map.
+ WEBKIT_EXPORT bool equals(const WebSpeechRecognitionHandle&) const;
+ WEBKIT_EXPORT bool lessThan(const WebSpeechRecognitionHandle&) const;
+
+#if WEBKIT_IMPLEMENTATION
+ WebSpeechRecognitionHandle(const WTF::PassRefPtr<WebCore::SpeechRecognition>&);
+ WebSpeechRecognitionHandle& operator=(const WTF::PassRefPtr<WebCore::SpeechRecognition>&);
+ operator WTF::PassRefPtr<WebCore::SpeechRecognition>() const;
+#endif
+
+private:
+ WebPrivatePtr<WebCore::SpeechRecognition> m_private;
+};
+
+inline bool operator==(const WebSpeechRecognitionHandle& a, const WebSpeechRecognitionHandle& b)
+{
+ return a.equals(b);
+}
+
+inline bool operator!=(const WebSpeechRecognitionHandle& a, const WebSpeechRecognitionHandle& b)
+{
+ return !(a == b);
+}
+
+inline bool operator<(const WebSpeechRecognitionHandle& a, const WebSpeechRecognitionHandle& b)
+{
+ return a.lessThan(b);
+}
+
+} // namespace WebKit
+
+#endif // WebSpeechRecognitionHandle_h
diff --git a/Source/WebKit/chromium/public/WebSpeechRecognitionParams.h b/Source/WebKit/chromium/public/WebSpeechRecognitionParams.h
new file mode 100644
index 000000000..b2dcce055
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechRecognitionParams.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechRecognitionParams_h
+#define WebSpeechRecognitionParams_h
+
+#include "WebSpeechGrammar.h"
+#include "platform/WebString.h"
+#include "platform/WebVector.h"
+
+namespace WebKit {
+
+class WebSpeechGrammar;
+
+class WebSpeechRecognitionParams {
+public:
+ WebSpeechRecognitionParams(const WebVector<WebSpeechGrammar>& grammars, const WebString& language, bool continuous)
+ : m_grammars(grammars)
+ , m_language(language)
+ , m_continuous(continuous)
+ {
+ }
+
+ const WebVector<WebSpeechGrammar>& grammars() const { return m_grammars; }
+ const WebString& language() const { return m_language; }
+ bool continuous() const { return m_continuous; }
+
+private:
+ WebVector<WebSpeechGrammar> m_grammars;
+ WebString m_language;
+ bool m_continuous;
+};
+
+} // namespace WebKit
+
+#endif // WebSpeechRecognitionParams_h
diff --git a/Source/WebKit/chromium/public/WebSpeechRecognitionResult.h b/Source/WebKit/chromium/public/WebSpeechRecognitionResult.h
new file mode 100644
index 000000000..899f28556
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechRecognitionResult.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechRecognitionResult_h
+#define WebSpeechRecognitionResult_h
+
+#include "platform/WebCommon.h"
+#include "platform/WebPrivatePtr.h"
+#include "platform/WebString.h"
+#include "platform/WebVector.h"
+
+namespace WebCore {
+class SpeechRecognitionResult;
+}
+
+namespace WebKit {
+
+class WebSpeechRecognitionResult {
+public:
+ WebSpeechRecognitionResult() { }
+ ~WebSpeechRecognitionResult() { reset(); }
+
+ WEBKIT_EXPORT void assign(const WebVector<WebString>& transcripts, const WebVector<float>& confidences, bool final);
+ WEBKIT_EXPORT void assign(const WebSpeechRecognitionResult&);
+ WEBKIT_EXPORT void reset();
+
+#if WEBKIT_IMPLEMENTATION
+ operator WTF::PassRefPtr<WebCore::SpeechRecognitionResult>() const;
+#endif
+
+private:
+ WebPrivatePtr<WebCore::SpeechRecognitionResult> m_private;
+};
+
+} // namespace WebKit
+
+#endif // WebSpeechRecognitionResult_h
diff --git a/Source/WebKit/chromium/public/WebSpeechRecognizer.h b/Source/WebKit/chromium/public/WebSpeechRecognizer.h
new file mode 100644
index 000000000..bd8f3c65e
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechRecognizer.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechRecognizer_h
+#define WebSpeechRecognizer_h
+
+#include "WebSpeechRecognitionHandle.h"
+#include "platform/WebCommon.h"
+
+namespace WebKit {
+
+class WebSpeechGrammar;
+class WebSpeechRecognitionParams;
+class WebSpeechRecognizerClient;
+
+// Interface for speech recognition, to be implemented by the embedder.
+class WebSpeechRecognizer {
+public:
+ // Start speech recognition for the specified handle using the specified parameters. Notifications on progress, results, and errors will be sent via the client.
+ virtual void start(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionParams&, WebSpeechRecognizerClient*) { WEBKIT_ASSERT_NOT_REACHED(); }
+
+ // Stop speech recognition for the specified handle, returning any results for the audio recorded so far. Notifications and errors are sent via the client.
+ virtual void stop(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) { WEBKIT_ASSERT_NOT_REACHED(); }
+
+ // Abort speech recognition for the specified handle, discarding any recorded audio. Notifications and errors are sent via the client.
+ virtual void abort(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) { WEBKIT_ASSERT_NOT_REACHED(); }
+
+protected:
+ virtual ~WebSpeechRecognizer() { }
+};
+
+} // namespace WebKit
+
+#endif // WebSpeechRecognizer_h
diff --git a/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h b/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h
new file mode 100644
index 000000000..35c637834
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSpeechRecognizerClient.h
@@ -0,0 +1,94 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSpeechRecognizerClient_h
+#define WebSpeechRecognizerClient_h
+
+#include "platform/WebVector.h"
+
+namespace WebKit {
+
+class WebSpeechRecognitionResult;
+class WebSpeechRecognitionHandle;
+class WebString;
+
+// A client for reporting progress on speech recognition for a specific handle.
+class WebSpeechRecognizerClient {
+public:
+ // These methods correspond to the events described in the spec:
+ // http://speech-javascript-api-spec.googlecode.com/git/speechapi.html#speechreco-events
+
+ // To be called when the embedder has started to capture audio.
+ virtual void didStartAudio(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when some sound, possibly speech, has been detected.
+ // This is expected to be called after didStartAudio.
+ virtual void didStartSound(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when speech has been detected.
+ // This is expected to be called after didStartSound.
+ virtual void didStartSpeech(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when speech is no longer detected.
+ virtual void didEndSpeech(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when sound is no longer detected.
+ // This is expected to be called after didEndSpeech.
+ virtual void didEndSound(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when audio capture has stopped.
+ // This is expected to be called after didEndSound.
+ virtual void didEndAudio(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when the speech recognizer returns a result.
+ virtual void didReceiveResult(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionResult&, unsigned long resultIndex, const WebVector<WebSpeechRecognitionResult>& resultHistory) = 0;
+
+ // To be called when the speech recognizer returns a final result with no
+ // recognizion hypothesis.
+ virtual void didReceiveNoMatch(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionResult&) = 0;
+
+ // To be called when the recognizer needs to delete one of the previously
+ // returned interim results.
+ virtual void didDeleteResult(const WebSpeechRecognitionHandle&, unsigned resultIndex, const WebVector<WebSpeechRecognitionResult>& resultHistory) = 0;
+
+ // To be called when a speech recognition error occurs.
+ // FIXME: Introduce an enum for the error code.
+ virtual void didReceiveError(const WebSpeechRecognitionHandle&, const WebString& message, unsigned short code) = 0;
+
+ // To be called when the recognizer has begun to listen to the audio with
+ // the intention of recognizing.
+ virtual void didStart(const WebSpeechRecognitionHandle&) = 0;
+
+ // To be called when the recognition session has ended. This must always be
+ // called, no matter the reason for the end.
+ virtual void didEnd(const WebSpeechRecognitionHandle&) = 0;
+
+protected:
+ virtual ~WebSpeechRecognizerClient() {}
+};
+
+} // namespace WebKit
+
+#endif // WebSpeechRecognizerClient_h
diff --git a/Source/WebKit/chromium/public/WebStorageEventDispatcher.h b/Source/WebKit/chromium/public/WebStorageEventDispatcher.h
index 88d333a93..4fbc596b2 100644
--- a/Source/WebKit/chromium/public/WebStorageEventDispatcher.h
+++ b/Source/WebKit/chromium/public/WebStorageEventDispatcher.h
@@ -35,17 +35,30 @@
namespace WebKit {
+class WebStorageArea;
+class WebStorageNamespace;
class WebURL;
-// This is used to dispatch storage events to all pages.
-// FIXME: Make this (or something) work for SessionStorage!
class WebStorageEventDispatcher {
public:
- WEBKIT_EXPORT static WebStorageEventDispatcher* create();
+ // Dispatch a local storage event to appropiate documents.
+ WEBKIT_EXPORT static void dispatchLocalStorageEvent(
+ const WebString& key, const WebString& oldValue,
+ const WebString& newValue, const WebURL& origin,
+ const WebURL& pageUrl, WebStorageArea* sourceAreaInstance,
+ bool originatedInProcess);
- virtual ~WebStorageEventDispatcher() { }
+ // Dispatch a session storage event to appropiate documents.
+ WEBKIT_EXPORT static void dispatchSessionStorageEvent(
+ const WebString& key, const WebString& oldValue,
+ const WebString& newValue, const WebURL& origin,
+ const WebURL& pageUrl, const WebStorageNamespace&,
+ WebStorageArea* sourceAreaInstance, bool originatedInProcess);
- // Dispatch the actual event. Doesn't yet work for SessionStorage.
+ // DEPRECATED - The instance methods are going away soon in favor
+ // of the two static dispatch methods above.
+ WEBKIT_EXPORT static WebStorageEventDispatcher* create();
+ virtual ~WebStorageEventDispatcher() { }
virtual void dispatchStorageEvent(const WebString& key, const WebString& oldValue,
const WebString& newValue, const WebString& origin,
const WebURL& url, bool isLocalStorage) = 0;
diff --git a/Source/WebKit/chromium/public/WebStorageNamespace.h b/Source/WebKit/chromium/public/WebStorageNamespace.h
index bb748d958..894330717 100644
--- a/Source/WebKit/chromium/public/WebStorageNamespace.h
+++ b/Source/WebKit/chromium/public/WebStorageNamespace.h
@@ -43,23 +43,6 @@ class WebString;
// StorageNamespace to represent LocalStorage for the entire browser.
class WebStorageNamespace {
public:
- // Create a new WebStorageNamespace. LocalStorageNamespaces require a path to specify
- // where the SQLite databases that make LocalStorage data persistent are located.
- // If path is empty, data will not persist. You should call delete on the returned
- // object when you're finished.
- WEBKIT_EXPORT static WebStorageNamespace* createLocalStorageNamespace(const WebString& backingDirectoryPath, unsigned quota);
- WEBKIT_EXPORT static WebStorageNamespace* createSessionStorageNamespace(unsigned quota);
-
- // The quota for each storage area. Suggested by the spec.
- static const unsigned m_localStorageQuota = 5 * 1024 * 1024;
-
- // Since SessionStorage memory is allocated in the browser process, we place a
- // per-origin quota on it. Like LocalStorage there are known attacks against
- // this, so it's more of a sanity check than a real security measure.
- static const unsigned m_sessionStorageQuota = 5 * 1024 * 1024;
-
- static const unsigned noQuota = UINT_MAX;
-
virtual ~WebStorageNamespace() { }
// Create a new WebStorageArea object. Two subsequent calls with the same origin
@@ -70,9 +53,11 @@ public:
// Copy a StorageNamespace. This only makes sense in the case of SessionStorage.
virtual WebStorageNamespace* copy() = 0;
- // Shutdown the StorageNamespace. Write all StorageArea's to disk and disallow new
- // write activity.
- virtual void close() = 0;
+ // Returns true of the two instances represent the same storage namespace.
+ virtual bool isSameNamespace(const WebStorageNamespace&) const { return false; }
+
+ // DEPRECATED
+ virtual void close() { }
};
} // namespace WebKit
diff --git a/Source/WebKit/chromium/public/WebSurroundingText.h b/Source/WebKit/chromium/public/WebSurroundingText.h
new file mode 100644
index 000000000..dd2a3c527
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebSurroundingText.h
@@ -0,0 +1,72 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebSurroundingText_h
+#define WebSurroundingText_h
+
+#include "WebNode.h"
+#include "WebRange.h"
+#include "platform/WebPrivateOwnPtr.h"
+#include "platform/WebString.h"
+
+namespace WebCore {
+class SurroundingText;
+}
+
+namespace WebKit {
+
+class WebHitTestResult;
+
+class WebSurroundingText {
+public:
+ WebSurroundingText() { }
+ ~WebSurroundingText() { reset(); }
+
+ WEBKIT_EXPORT bool isNull() const;
+ WEBKIT_EXPORT void reset();
+
+ // Initializes the object go get the surrounding text centered in the position described by the hit test.
+ // The maximum length of the contents retrieved is defined by maxLength.
+ WEBKIT_EXPORT void initialize(const WebHitTestResult&, size_t maxLength);
+
+ // Initializes the object go get the surrounding text centered in the selected offset of the given node.
+ // The maximum length of the contents retrieved is defined by maxLength.
+ WEBKIT_EXPORT void initialize(WebNode textNode, size_t offset, size_t maxLength);
+
+ // Surrounding text content retrieved.
+ WEBKIT_EXPORT WebString textContent() const;
+
+ // Offset in the text content of the initial hit position (or provided offset in the node).
+ WEBKIT_EXPORT size_t hitOffsetInTextContent() const;
+
+ // Convert start/end positions in the content text string into a WebKit text range.
+ WEBKIT_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, size_t endOffsetInContent);
+
+protected:
+ WebPrivateOwnPtr<WebCore::SurroundingText> m_private;
+};
+
+} // namespace WebKit
+
+#endif
diff --git a/Source/WebKit/chromium/public/WebTextCheckingCompletion.h b/Source/WebKit/chromium/public/WebTextCheckingCompletion.h
index 32701e4c7..c3010dfd4 100644
--- a/Source/WebKit/chromium/public/WebTextCheckingCompletion.h
+++ b/Source/WebKit/chromium/public/WebTextCheckingCompletion.h
@@ -42,6 +42,7 @@ template <typename T> class WebVector;
class WebTextCheckingCompletion {
public:
virtual void didFinishCheckingText(const WebVector<WebTextCheckingResult>&) = 0;
+ virtual void didCancelCheckingText() { };
protected:
~WebTextCheckingCompletion() { }
};
diff --git a/Source/WebKit/chromium/public/WebTextFieldDecoratorClient.h b/Source/WebKit/chromium/public/WebTextFieldDecoratorClient.h
new file mode 100644
index 000000000..a8d29f93e
--- /dev/null
+++ b/Source/WebKit/chromium/public/WebTextFieldDecoratorClient.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebTextFieldDecoratorClient_h
+#define WebTextFieldDecoratorClient_h
+
+#include "platform/WebCString.h"
+
+namespace WebKit {
+
+class WebInputElement;
+
+class WebTextFieldDecoratorClient {
+public:
+ // The function should return true if the specified input element should
+ // have a decoration icon. This function is called whenever a text field is
+ // created, and should not take much time.
+ virtual bool shouldAddDecorationTo(const WebInputElement&) = 0;
+
+ // Image resource name for the normal state. The image is stretched to
+ // font-size x font-size square. The function must return an existing
+ // resource name.
+ virtual WebCString imageNameForNormalState() = 0;
+ // Image resource name for the disabled state. If this function returns an
+ // empty string, imageNameForNormalState() is used even for the disabled
+ // state.
+ virtual WebCString imageNameForDisabledState() = 0;
+ // Image resource name for the disabled state. If this function returns an
+ // empty string, the image same as imageNameForDisabledState() is used.
+ virtual WebCString imageNameForReadOnlyState() = 0;
+
+ // This is called when the decoration icon is clicked.
+ virtual void handleClick(WebInputElement&) = 0;
+ // This is called when the input element loses its renderer. An
+ // implementation of this function should not do something which updates
+ // state of WebKit objects.
+ virtual void willDetach(const WebInputElement&) = 0;
+
+ virtual ~WebTextFieldDecoratorClient() { }
+};
+
+}
+
+#endif // WebTextFieldDecoratorClient_h
diff --git a/Source/WebKit/chromium/public/WebMediaElement.h b/Source/WebKit/chromium/public/WebTimeRange.h
index f828ea1f6..d1a3a2098 100644
--- a/Source/WebKit/chromium/public/WebMediaElement.h
+++ b/Source/WebKit/chromium/public/WebTimeRange.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,29 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaElement_h
-#define WebMediaElement_h
+#ifndef WebTimeRange_h
+#define WebTimeRange_h
-#include "WebElement.h"
-
-#if WEBKIT_IMPLEMENTATION
-namespace WebCore { class HTMLMediaElement; }
-#endif
+#include "platform/WebVector.h"
namespace WebKit {
-class WebMediaPlayer;
+struct WebTimeRange {
+ WebTimeRange() : start(0), end(0) { }
+ WebTimeRange(float s, float e) : start(s), end(e) { }
-class WebMediaElement : public WebElement {
-public:
- WEBKIT_EXPORT WebMediaPlayer* player() const;
-
-#if WEBKIT_IMPLEMENTATION
- WebMediaElement(const WTF::PassRefPtr<WebCore::HTMLMediaElement>&);
- WebMediaElement& operator=(const WTF::PassRefPtr<WebCore::HTMLMediaElement>&);
- operator WTF::PassRefPtr<WebCore::HTMLMediaElement>() const;
-#endif
+ float start;
+ float end;
};
+
+typedef WebVector<WebTimeRange> WebTimeRanges;
+
} // namespace WebKit
-#endif // WebMediaElement_h
+#endif
diff --git a/Source/WebKit/chromium/public/WebUserMediaClient.h b/Source/WebKit/chromium/public/WebUserMediaClient.h
index 2998159ee..bbdea18c1 100644
--- a/Source/WebKit/chromium/public/WebUserMediaClient.h
+++ b/Source/WebKit/chromium/public/WebUserMediaClient.h
@@ -41,9 +41,6 @@ class WebUserMediaClient {
public:
virtual ~WebUserMediaClient() { }
- // DEPRECATED
- virtual void requestUserMedia(const WebUserMediaRequest&, const WebVector<WebMediaStreamSource>&) { }
-
virtual void requestUserMedia(const WebUserMediaRequest&, const WebVector<WebMediaStreamSource>& audioSources, const WebVector<WebMediaStreamSource>& videoSources) { }
virtual void cancelUserMediaRequest(const WebUserMediaRequest&) = 0;
diff --git a/Source/WebKit/chromium/public/WebUserMediaRequest.h b/Source/WebKit/chromium/public/WebUserMediaRequest.h
index 38fb1898b..54b534e7b 100644
--- a/Source/WebKit/chromium/public/WebUserMediaRequest.h
+++ b/Source/WebKit/chromium/public/WebUserMediaRequest.h
@@ -31,6 +31,7 @@
#ifndef WebUserMediaRequest_h
#define WebUserMediaRequest_h
+#include "WebSecurityOrigin.h"
#include "platform/WebCommon.h"
#include "platform/WebPrivatePtr.h"
@@ -41,7 +42,6 @@ class UserMediaRequest;
namespace WebKit {
class WebMediaStreamSource;
-class WebSecurityOrigin;
class WebString;
template <typename T> class WebVector;
@@ -64,12 +64,8 @@ public:
WEBKIT_EXPORT bool audio() const;
WEBKIT_EXPORT bool video() const;
- WEBKIT_EXPORT bool cameraPreferenceUser() const;
- WEBKIT_EXPORT bool cameraPreferenceEnvironment() const;
- WEBKIT_EXPORT WebSecurityOrigin securityOrigin() const;
- // DEPRECATED
- WEBKIT_EXPORT void requestSucceeded(const WebVector<WebMediaStreamSource>&);
+ WEBKIT_EXPORT WebSecurityOrigin securityOrigin() const;
WEBKIT_EXPORT void requestSucceeded(const WebVector<WebMediaStreamSource>& audioSources, const WebVector<WebMediaStreamSource>& videoSources);
WEBKIT_EXPORT void requestFailed();
diff --git a/Source/WebKit/chromium/public/WebVideoFrame.h b/Source/WebKit/chromium/public/WebVideoFrame.h
index 78790627d..948a7a444 100644
--- a/Source/WebKit/chromium/public/WebVideoFrame.h
+++ b/Source/WebKit/chromium/public/WebVideoFrame.h
@@ -1,69 +1,26 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebVideoFrame_h
-#define WebVideoFrame_h
-
-namespace WebKit {
-
-// A proxy video frame interface to communicate frame data between chromium
-// and WebKit.
-class WebVideoFrame {
-public:
- enum Format {
- FormatInvalid,
- FormatRGB555,
- FormatRGB565,
- FormatRGB24,
- FormatRGB32,
- FormatRGBA,
- FormatYV12,
- FormatYV16,
- FormatNV12,
- FormatEmpty,
- FormatASCII,
- FormatI420,
- FormatNativeTexture,
- };
-
- virtual ~WebVideoFrame() { }
- virtual Format format() const { return FormatInvalid; }
- virtual unsigned width() const { return 0; }
- virtual unsigned height() const { return 0; }
- virtual unsigned planes() const { return 0; }
- virtual int stride(unsigned plane) const { return 0; }
- virtual const void* data(unsigned plane) const { return 0; }
- virtual unsigned textureId() const { return 0; }
- virtual unsigned textureTarget() const { return 0; }
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../Platform/chromium/public/WebVideoFrame.h"
diff --git a/Source/WebKit/chromium/public/WebView.h b/Source/WebKit/chromium/public/WebView.h
index 50cf2eaa0..111ecc641 100644
--- a/Source/WebKit/chromium/public/WebView.h
+++ b/Source/WebKit/chromium/public/WebView.h
@@ -41,6 +41,7 @@ namespace WebKit {
class WebAccessibilityObject;
class WebAutofillClient;
+class WebBatteryStatus;
class WebDevToolsAgent;
class WebDevToolsAgentClient;
class WebDragData;
@@ -50,10 +51,14 @@ class WebGraphicsContext3D;
class WebNode;
class WebPageOverlay;
class WebPermissionClient;
+class WebPrerendererClient;
+class WebRange;
class WebSettings;
class WebSpellCheckClient;
class WebString;
+class WebTextFieldDecoratorClient;
class WebViewClient;
+struct WebActiveWheelFlingParameters;
struct WebMediaPlayerAction;
struct WebPluginAction;
struct WebPoint;
@@ -102,7 +107,11 @@ public:
virtual void setAutofillClient(WebAutofillClient*) = 0;
virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0;
virtual void setPermissionClient(WebPermissionClient*) = 0;
+ // FIXME: After the Prerendering API lands in chrome, remove this staging thunk
+ // for setPrerendererClient().
+ virtual void setPrerendererClient(WebPrerendererClient*) { }
virtual void setSpellCheckClient(WebSpellCheckClient*) = 0;
+ virtual void addTextFieldDecoratorClient(WebTextFieldDecoratorClient*) = 0;
// Options -------------------------------------------------------------
@@ -266,12 +275,6 @@ public:
// Turn off auto-resize.
virtual void disableAutoResizeMode() = 0;
- // DEPRECATED
- virtual void enableAutoResizeMode(
- bool enable,
- const WebSize& minSize,
- const WebSize& maxSize) = 0;
-
// Media ---------------------------------------------------------------
// Performs the specified media player action on the node at the given location.
@@ -352,19 +355,16 @@ public:
// Autofill -----------------------------------------------------------
// Notifies the WebView that Autofill suggestions are available for a node.
- // |uniqueIDs| is a vector of IDs that represent the unique ID of each
- // Autofill profile in the suggestions popup. If a unique ID is 0, then the
- // corresponding suggestion comes from Autocomplete rather than Autofill.
- // If a unique ID is negative, then the corresponding "suggestion" is
- // actually a user-facing warning, e.g. explaining why Autofill is
- // unavailable for the current form.
+ // |itemIDs| is a vector of IDs for the menu items. A positive itemID is a
+ // unique ID for the Autofill entries. Other MenuItemIDs are defined in
+ // WebAutofillClient.h
virtual void applyAutofillSuggestions(
const WebNode&,
const WebVector<WebString>& names,
const WebVector<WebString>& labels,
const WebVector<WebString>& icons,
- const WebVector<int>& uniqueIDs,
- int separatorIndex) = 0;
+ const WebVector<int>& itemIDs,
+ int separatorIndex = -1) = 0;
// Hides any popup (suggestions, selects...) that might be showing.
virtual void hidePopups() = 0;
@@ -434,6 +434,10 @@ public:
// Can be used for allocating resources that the compositor will later access.
virtual WebGraphicsContext3D* sharedGraphicsContext3D() = 0;
+ // Called to inform the WebView that a wheel fling animation was started externally (for instance
+ // by the compositor) but must be completed by the WebView.
+ virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) = 0;
+
// Visibility -----------------------------------------------------------
// Sets the visibility of the WebView.
@@ -453,12 +457,18 @@ public:
virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0;
virtual void removePageOverlay(WebPageOverlay*) = 0;
+ // Battery status API support -------------------------------------------
+
+ // Updates the battery status in the BatteryClient. This also triggers the
+ // appropriate JS events (e.g. sends a 'levelchange' event to JS if the
+ // level is changed in this update from the previous update).
+ virtual void updateBatteryStatus(const WebBatteryStatus&) { }
+
// Testing functionality for LayoutTestController -----------------------
// Simulates a compositor lost context.
virtual void loseCompositorContext(int numTimes) = 0;
-
protected:
~WebView() {}
};
diff --git a/Source/WebKit/chromium/public/WebViewClient.h b/Source/WebKit/chromium/public/WebViewClient.h
index b2c0e5665..c4a5e40d2 100644
--- a/Source/WebKit/chromium/public/WebViewClient.h
+++ b/Source/WebKit/chromium/public/WebViewClient.h
@@ -48,6 +48,7 @@
namespace WebKit {
class WebAccessibilityObject;
+class WebBatteryStatusClient;
class WebColorChooser;
class WebColorChooserClient;
class WebDeviceOrientationClient;
@@ -68,6 +69,7 @@ class WebNotificationPresenter;
class WebRange;
class WebSpeechInputController;
class WebSpeechInputListener;
+class WebSpeechRecognizer;
class WebStorageNamespace;
class WebURL;
class WebURLRequest;
@@ -116,8 +118,6 @@ public:
// Creates a graphics context that renders to the client's WebView.
virtual WebGraphicsContext3D* createGraphicsContext3D(const WebGraphicsContext3D::Attributes&) { return 0; }
- // Deprecated, use the first version of this function. If you want an offscreen context, use WebKitPlatformSupport::createOffscreenGraphicsContext3D().
- virtual WebGraphicsContext3D* createGraphicsContext3D(const WebGraphicsContext3D::Attributes&, bool renderDirectlyToWebView) { return 0; }
// Misc ----------------------------------------------------------------
@@ -318,11 +318,18 @@ public:
virtual WebSpeechInputController* speechInputController(
WebSpeechInputListener*) { return 0; }
+ // Access the embedder API for speech recognition services.
+ virtual WebSpeechRecognizer* speechRecognizer() { return 0; }
+
// Device Orientation --------------------------------------------------
// Access the embedder API for device orientation services.
virtual WebDeviceOrientationClient* deviceOrientationClient() { return 0; }
+ // Battery Status ------------------------------------------------------
+
+ // Access the embedder API for battery status services.
+ virtual WebBatteryStatusClient* batteryStatusClient() { return 0; }
// Zoom ----------------------------------------------------------------
diff --git a/Source/WebKit/chromium/public/WebWidget.h b/Source/WebKit/chromium/public/WebWidget.h
index e9712d743..fad319d78 100644
--- a/Source/WebKit/chromium/public/WebWidget.h
+++ b/Source/WebKit/chromium/public/WebWidget.h
@@ -40,6 +40,7 @@
#include "platform/WebSize.h"
#define WEBKIT_HAS_NEW_FULLSCREEN_API 1
+#define WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY 1
namespace WebKit {
@@ -79,10 +80,10 @@ public:
virtual void didExitFullScreen() { }
// Called to update imperative animation state. This should be called before
- // paint, although the client can rate-limit these calls. When
- // frameBeginTime is 0.0, the WebWidget will determine the frame begin time
- // itself.
- virtual void animate(double frameBeginTime) { }
+ // paint, although the client can rate-limit these calls.
+ //
+ // FIXME: remove this function entirely when inversion patches land.
+ virtual void animate(double ignored) { }
// Called to layout the WebWidget. This MUST be called before Paint,
// and it may result in calls to WebWidgetClient::didInvalidateRect.
@@ -107,11 +108,24 @@ public:
// animate or layout in this case.
virtual void composite(bool finish) = 0;
+ // Indicates that the compositing surface associated with this WebWidget is
+ // ready to use.
+ virtual void setCompositorSurfaceReady() = 0;
+
// Temporary method for the embedder to notify the WebWidget that the widget
// has taken damage, e.g. due to a window expose. This method will be
// removed when the WebWidget inversion patch lands --- http://crbug.com/112837
virtual void setNeedsRedraw() { }
+ // Temporary method for the embedder to check for throttled input. When this
+ // is true, the WebWidget is indicating that it would prefer to not receive
+ // additional input events until
+ // WebWidgetClient::didBecomeReadyForAdditionalInput is called.
+ //
+ // This method will be removed when the WebWidget inversion patch lands ---
+ // http://crbug.com/112837
+ virtual bool isInputThrottled() const { return false; }
+
// Called to inform the WebWidget of a change in theme.
// Implementors that cache rendered copies of widgets need to re-render
// on receiving this message
@@ -195,6 +209,9 @@ public:
// Instrumentation method that marks beginning of frame update that includes
// things like animate()/layout()/paint()/composite().
virtual void instrumentBeginFrame() { }
+ // Cancels the effect of instrumentBeginFrame() in case there were no events
+ // following the call to instrumentBeginFrame().
+ virtual void instrumentCancelFrame() { }
protected:
~WebWidget() { }
diff --git a/Source/WebKit/chromium/public/WebWidgetClient.h b/Source/WebKit/chromium/public/WebWidgetClient.h
index 24cd9c6ac..92dfb3671 100644
--- a/Source/WebKit/chromium/public/WebWidgetClient.h
+++ b/Source/WebKit/chromium/public/WebWidgetClient.h
@@ -56,14 +56,23 @@ public:
virtual void didAutoResize(const WebSize& newSize) { }
// Called when the compositor is enabled or disabled.
- // The WebCompositor identifier can be used on the compositor thread to get access
- // to the WebCompositor instance associated with this WebWidget.
- // If there is no WebCompositor associated with this WebWidget (for example if
- // threaded compositing is not enabled) then calling WebCompositor::fromIdentifier()
+ // The inputHandlerIdentifier can be used on the compositor thread to get access
+ // to the WebCompositorInputHandler instance associated with this WebWidget.
+ // If there is no WebCompositorInputHandler associated with this WebWidget (for example if
+ // threaded compositing is not enabled) then calling WebCompositorInputHandler::fromIdentifier()
// for the specified identifier will return 0.
- virtual void didActivateCompositor(int compositorIdentifier) { }
+ virtual void didActivateCompositor(int inputHandlerIdentifier) { }
virtual void didDeactivateCompositor() { }
+ // Indicates to the embedder that the compositor is about to begin a
+ // frame. This is primarily to signal to flow control mechanisms that a
+ // frame is beginning, not to perform actual painting work.
+ virtual void willBeginCompositorFrame() { }
+
+ // Indicates to the embedder that the WebWidget is ready for additional
+ // input.
+ virtual void didBecomeReadyForAdditionalInput() { }
+
// Called for compositing mode when the draw commands for a WebKit-side
// frame have been issued.
virtual void didCommitAndDrawCompositorFrame() { }
diff --git a/Source/WebKit/chromium/public/android/WebInputEventFactory.h b/Source/WebKit/chromium/public/android/WebInputEventFactory.h
index d49be4187..fb52787a7 100644
--- a/Source/WebKit/chromium/public/android/WebInputEventFactory.h
+++ b/Source/WebKit/chromium/public/android/WebInputEventFactory.h
@@ -59,6 +59,8 @@ public:
int windowY,
MouseEventType,
double timeStampSeconds,
+ int modifiers,
+ int clickCount,
WebMouseEvent::Button = WebMouseEvent::ButtonLeft);
};
diff --git a/Source/WebKit/chromium/public/platform/WebArrayBufferView.h b/Source/WebKit/chromium/public/platform/WebArrayBufferView.h
index 8f2356930..bcdb4b515 100644
--- a/Source/WebKit/chromium/public/platform/WebArrayBufferView.h
+++ b/Source/WebKit/chromium/public/platform/WebArrayBufferView.h
@@ -32,6 +32,13 @@
#include "WebCommon.h"
#include "WebPrivatePtr.h"
+#if WEBKIT_USING_V8
+namespace v8 {
+class Value;
+template <class T> class Handle;
+}
+#endif
+
namespace WTF { class ArrayBufferView; }
namespace WebKit {
@@ -50,6 +57,10 @@ public:
WEBKIT_EXPORT void assign(const WebArrayBufferView&);
WEBKIT_EXPORT void reset();
+#if WEBKIT_USING_V8
+ WEBKIT_EXPORT static WebArrayBufferView* createFromV8Value(v8::Handle<v8::Value>);
+#endif
+
#if WEBKIT_IMPLEMENTATION
WebArrayBufferView(const WTF::PassRefPtr<WTF::ArrayBufferView>&);
WebArrayBufferView& operator=(const WTF::PassRefPtr<WTF::ArrayBufferView>&);
diff --git a/Source/WebKit/chromium/public/platform/WebAudioBus.h b/Source/WebKit/chromium/public/platform/WebAudioBus.h
index 750ae79e2..a01117bce 100644
--- a/Source/WebKit/chromium/public/platform/WebAudioBus.h
+++ b/Source/WebKit/chromium/public/platform/WebAudioBus.h
@@ -1,75 +1,26 @@
/*
- * Copyright (C) 2010, Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
+ *
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebAudioBus_h
-#define WebAudioBus_h
-
-#include "WebCommon.h"
-
-namespace WebCore { class AudioBus; }
-
-#if WEBKIT_IMPLEMENTATION
-namespace WTF { template <typename T> class PassOwnPtr; }
-#endif
-
-namespace WebKit {
-
-class WebAudioBusPrivate;
-
-// A container for multi-channel linear PCM audio data.
-//
-// WARNING: It is not safe to pass a WebAudioBus across threads!!!
-//
-class WebAudioBus {
-public:
- WebAudioBus() : m_private(0) { }
- ~WebAudioBus() { reset(); }
-
- // initialize() allocates memory of the given length for the given number of channels.
- WEBKIT_EXPORT void initialize(unsigned numberOfChannels, size_t length, double sampleRate);
-
- // reset() releases the memory allocated from initialize().
- WEBKIT_EXPORT void reset();
-
- WEBKIT_EXPORT unsigned numberOfChannels() const;
- WEBKIT_EXPORT size_t length() const;
- WEBKIT_EXPORT double sampleRate() const;
-
- WEBKIT_EXPORT float* channelData(unsigned channelIndex);
-
-#if WEBKIT_IMPLEMENTATION
- WTF::PassOwnPtr<WebCore::AudioBus> release();
-#endif
-
-private:
- // Disallow copy and assign.
- WebAudioBus(const WebAudioBus&);
- void operator=(const WebAudioBus&);
-
- WebCore::AudioBus* m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebAudioBus_h
+#include "../../../../Platform/chromium/public/WebAudioBus.h"
diff --git a/Source/WebKit/chromium/public/platform/WebAudioDevice.h b/Source/WebKit/chromium/public/platform/WebAudioDevice.h
index 00aea975f..67ea5ffbe 100644
--- a/Source/WebKit/chromium/public/platform/WebAudioDevice.h
+++ b/Source/WebKit/chromium/public/platform/WebAudioDevice.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -10,9 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -26,31 +23,4 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebAudioDevice_h
-#define WebAudioDevice_h
-
-#include "WebVector.h"
-
-namespace WebKit {
-
-// Abstract interface to the Chromium audio system.
-
-class WebAudioDevice {
-public:
- class RenderCallback {
- public:
- virtual void render(const WebVector<float*>& audioData, size_t numberOfFrames) = 0;
- protected:
- virtual ~RenderCallback() { }
- };
-
- virtual ~WebAudioDevice() { }
-
- virtual void start() = 0;
- virtual void stop() = 0;
- virtual double sampleRate() = 0;
-};
-
-} // namespace WebKit
-
-#endif // WebAudioDevice_h
+#include "../../../../Platform/chromium/public/WebAudioDevice.h"
diff --git a/Source/WebKit/chromium/public/platform/WebData.h b/Source/WebKit/chromium/public/platform/WebData.h
index 17d3f388c..cec0c63bd 100644
--- a/Source/WebKit/chromium/public/platform/WebData.h
+++ b/Source/WebKit/chromium/public/platform/WebData.h
@@ -1,110 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebData_h
-#define WebData_h
-
-#include "WebCommon.h"
-
-#if WEBKIT_IMPLEMENTATION
-namespace WebCore { class SharedBuffer; }
-namespace WTF { template <typename T> class PassRefPtr; }
-#endif
-
-namespace WebKit {
-
-class WebDataPrivate;
-
-// A container for raw bytes. It is inexpensive to copy a WebData object.
-//
-// WARNING: It is not safe to pass a WebData across threads!!!
-//
-class WebData {
-public:
- ~WebData() { reset(); }
-
- WebData() : m_private(0) { }
-
- WebData(const char* data, size_t size) : m_private(0)
- {
- assign(data, size);
- }
-
- template <int N>
- WebData(const char (&data)[N]) : m_private(0)
- {
- assign(data, N - 1);
- }
-
- WebData(const WebData& d) : m_private(0) { assign(d); }
-
- WebData& operator=(const WebData& d)
- {
- assign(d);
- return *this;
- }
-
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebData&);
- WEBKIT_EXPORT void assign(const char* data, size_t size);
-
- WEBKIT_EXPORT size_t size() const;
- WEBKIT_EXPORT const char* data() const;
-
- bool isEmpty() const { return !size(); }
- bool isNull() const { return !m_private; }
-
-#if WEBKIT_IMPLEMENTATION
- WebData(const WTF::PassRefPtr<WebCore::SharedBuffer>&);
- WebData& operator=(const WTF::PassRefPtr<WebCore::SharedBuffer>&);
- operator WTF::PassRefPtr<WebCore::SharedBuffer>() const;
-#else
- template <class C>
- WebData(const C& c) : m_private(0)
- {
- assign(c.data(), c.size());
- }
-
- template <class C>
- WebData& operator=(const C& c)
- {
- assign(c.data(), c.size());
- return *this;
- }
-#endif
-
-private:
- void assign(WebDataPrivate*);
- WebDataPrivate* m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebData.h"
diff --git a/Source/WebKit/chromium/public/platform/WebDragData.h b/Source/WebKit/chromium/public/platform/WebDragData.h
index a6c82aee1..9666fe4b1 100644
--- a/Source/WebKit/chromium/public/platform/WebDragData.h
+++ b/Source/WebKit/chromium/public/platform/WebDragData.h
@@ -70,6 +70,7 @@ public:
// Only valid when storageType == StorageTypeFilename.
WebString filenameData;
+ WebString displayNameData;
// Only valid when storageType == StorageTypeBinaryData.
WebData binaryData;
@@ -102,6 +103,9 @@ public:
WEBKIT_EXPORT void setItems(const WebVector<Item>&);
WEBKIT_EXPORT void addItem(const Item&);
+ WEBKIT_EXPORT WebString filesystemId() const;
+ WEBKIT_EXPORT void setFilesystemId(const WebString&);
+
#if WEBKIT_IMPLEMENTATION
WebDragData(const WTF::PassRefPtr<WebCore::ChromiumDataObject>&);
WebDragData& operator=(const WTF::PassRefPtr<WebCore::ChromiumDataObject>&);
diff --git a/Source/WebKit/chromium/public/platform/WebFileSystem.h b/Source/WebKit/chromium/public/platform/WebFileSystem.h
index 2562ef1c3..25afb49f0 100644
--- a/Source/WebKit/chromium/public/platform/WebFileSystem.h
+++ b/Source/WebKit/chromium/public/platform/WebFileSystem.h
@@ -46,6 +46,11 @@ public:
enum Type {
TypeTemporary,
TypePersistent,
+
+ // Indicates an isolated filesystem which only exposes a set of files.
+ TypeIsolated,
+
+ // Indicates a non-sandboxed filesystem.
TypeExternal,
};
diff --git a/Source/WebKit/chromium/public/platform/WebGamepad.h b/Source/WebKit/chromium/public/platform/WebGamepad.h
index 788e78ba4..93d08f3c7 100644
--- a/Source/WebKit/chromium/public/platform/WebGamepad.h
+++ b/Source/WebKit/chromium/public/platform/WebGamepad.h
@@ -1,86 +1,26 @@
-// Copyright (C) 2011, Google Inc. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-// DAMAGE.
-
-#ifndef WebGamepad_h
-#define WebGamepad_h
-
-#include "WebCommon.h"
-
-#if WEBKIT_IMPLEMENTATION
-#include <wtf/Assertions.h>
-#endif
-
-namespace WebKit {
-
-#pragma pack(push, 1)
-
-// This structure is intentionally POD and fixed size so that it can be shared
-// memory between hardware polling threads and the rest of the browser. See
-// also WebGamepads.h.
-class WebGamepad {
-public:
- static const size_t idLengthCap = 128;
- static const size_t axesLengthCap = 16;
- static const size_t buttonsLengthCap = 32;
-
- WebGamepad()
- : connected(false)
- , timestamp(0)
- , axesLength(0)
- , buttonsLength(0)
- {
- id[0] = 0;
- }
-
- // Is there a gamepad connected at this index?
- bool connected;
-
- // Device identifier (based on manufacturer, model, etc.).
- WebUChar id[idLengthCap];
-
- // Monotonically increasing value referring to when the data were last
- // updated.
- unsigned long long timestamp;
-
- // Number of valid entries in the axes array.
- unsigned axesLength;
-
- // Normalized values representing axes, in the range [-1..1].
- float axes[axesLengthCap];
-
- // Number of valid entries in the buttons array.
- unsigned buttonsLength;
-
- // Normalized values representing buttons, in the range [0..1].
- float buttons[buttonsLengthCap];
-};
-
-#if WEBKIT_IMPLEMENTATION
-COMPILE_ASSERT(sizeof(WebGamepad) == 465, WebGamepad_has_wrong_size);
-#endif
-
-#pragma pack(pop)
-
-}
-
-#endif // WebGamepad_h
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebGamepad.h"
diff --git a/Source/WebKit/chromium/public/platform/WebGamepads.h b/Source/WebKit/chromium/public/platform/WebGamepads.h
index 50e2ab208..b69539029 100644
--- a/Source/WebKit/chromium/public/platform/WebGamepads.h
+++ b/Source/WebKit/chromium/public/platform/WebGamepads.h
@@ -1,62 +1,26 @@
-// Copyright (C) 2011, Google Inc. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-//
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-// DAMAGE.
-
-#ifndef WebGamepads_h
-#define WebGamepads_h
-
-#include "WebGamepad.h"
-
-#if WEBKIT_IMPLEMENTATION
-#include <wtf/Assertions.h>
-#endif
-
-namespace WebKit {
-
-#pragma pack(push, 1)
-
-// This structure is intentionally POD and fixed size so that it can be stored
-// in shared memory between hardware polling threads and the rest of the
-// browser.
-class WebGamepads {
-public:
- WebGamepads()
- : length(0) { }
-
- static const size_t itemsLengthCap = 4;
-
- // Number of valid entries in the items array.
- unsigned length;
-
- // Gamepad data for N separate gamepad devices.
- WebGamepad items[itemsLengthCap];
-};
-
-#if WEBKIT_IMPLEMENTATION
-COMPILE_ASSERT(sizeof(WebGamepads) == 1864, WebGamepads_has_wrong_size);
-#endif
-
-#pragma pack(pop)
-
-}
-
-#endif // WebGamepads_h
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebGamepads.h"
diff --git a/Source/WebKit/chromium/public/platform/WebHTTPBody.h b/Source/WebKit/chromium/public/platform/WebHTTPBody.h
index e97856320..44754e936 100644
--- a/Source/WebKit/chromium/public/platform/WebHTTPBody.h
+++ b/Source/WebKit/chromium/public/platform/WebHTTPBody.h
@@ -1,109 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebHTTPBody_h
-#define WebHTTPBody_h
-
-#include "WebData.h"
-#include "WebNonCopyable.h"
-#include "WebString.h"
-#include "WebURL.h"
-
-#if WEBKIT_IMPLEMENTATION
-namespace WebCore { class FormData; }
-namespace WTF { template <typename T> class PassRefPtr; }
-#endif
-
-namespace WebKit {
-
-class WebHTTPBodyPrivate;
-
-class WebHTTPBody {
-public:
- struct Element {
- enum Type { TypeData, TypeFile, TypeBlob } type;
- WebData data;
- WebString filePath;
- long long fileStart;
- long long fileLength; // -1 means to the end of the file.
- double modificationTime;
- WebURL blobURL;
- };
-
- ~WebHTTPBody() { reset(); }
-
- WebHTTPBody() : m_private(0) { }
- WebHTTPBody(const WebHTTPBody& b) : m_private(0) { assign(b); }
- WebHTTPBody& operator=(const WebHTTPBody& b)
- {
- assign(b);
- return *this;
- }
-
- WEBKIT_EXPORT void initialize();
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebHTTPBody&);
-
- bool isNull() const { return !m_private; }
-
- // Returns the number of elements comprising the http body.
- WEBKIT_EXPORT size_t elementCount() const;
-
- // Sets the values of the element at the given index. Returns false if
- // index is out of bounds.
- WEBKIT_EXPORT bool elementAt(size_t index, Element&) const;
-
- // Append to the list of elements.
- WEBKIT_EXPORT void appendData(const WebData&);
- WEBKIT_EXPORT void appendFile(const WebString&);
- // Passing -1 to fileLength means to the end of the file.
- WEBKIT_EXPORT void appendFileRange(const WebString&, long long fileStart, long long fileLength, double modificationTime);
- WEBKIT_EXPORT void appendBlob(const WebURL&);
-
- // Identifies a particular form submission instance. A value of 0 is
- // used to indicate an unspecified identifier.
- WEBKIT_EXPORT long long identifier() const;
- WEBKIT_EXPORT void setIdentifier(long long);
-
-#if WEBKIT_IMPLEMENTATION
- WebHTTPBody(const WTF::PassRefPtr<WebCore::FormData>&);
- WebHTTPBody& operator=(const WTF::PassRefPtr<WebCore::FormData>&);
- operator WTF::PassRefPtr<WebCore::FormData>() const;
-#endif
-
-private:
- void assign(WebHTTPBodyPrivate*);
- void ensureMutable();
- WebHTTPBodyPrivate* m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebHTTPBody.h"
diff --git a/Source/WebKit/chromium/public/platform/WebHTTPHeaderVisitor.h b/Source/WebKit/chromium/public/platform/WebHTTPHeaderVisitor.h
index 2ca86c01c..d244c9543 100644
--- a/Source/WebKit/chromium/public/platform/WebHTTPHeaderVisitor.h
+++ b/Source/WebKit/chromium/public/platform/WebHTTPHeaderVisitor.h
@@ -1,48 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebHTTPHeaderVisitor_h
-#define WebHTTPHeaderVisitor_h
-
-namespace WebKit {
-
-class WebString;
-
-class WebHTTPHeaderVisitor {
-public:
- virtual void visitHeader(const WebString& name, const WebString& value) = 0;
-
-protected:
- ~WebHTTPHeaderVisitor() { }
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebHTTPHeaderVisitor.h"
diff --git a/Source/WebKit/chromium/public/platform/WebHTTPLoadInfo.h b/Source/WebKit/chromium/public/platform/WebHTTPLoadInfo.h
index 09bf16992..3e3cb3608 100644
--- a/Source/WebKit/chromium/public/platform/WebHTTPLoadInfo.h
+++ b/Source/WebKit/chromium/public/platform/WebHTTPLoadInfo.h
@@ -1,88 +1,26 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebHTTPLoadInfo_h
-#define WebHTTPLoadInfo_h
-
-#include "WebCommon.h"
-#include "WebPrivatePtr.h"
-
-namespace WebCore {
-struct ResourceLoadInfo;
-}
-
-namespace WebKit {
-class WebString;
-
-class WebHTTPLoadInfo {
-public:
- WebHTTPLoadInfo() { initialize(); }
- ~WebHTTPLoadInfo() { reset(); }
- WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); }
- WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r)
- {
- assign(r);
- return *this;
- }
-
- WEBKIT_EXPORT void initialize();
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebHTTPLoadInfo& r);
-
- WEBKIT_EXPORT int httpStatusCode() const;
- WEBKIT_EXPORT void setHTTPStatusCode(int);
-
- WEBKIT_EXPORT WebString httpStatusText() const;
- WEBKIT_EXPORT void setHTTPStatusText(const WebString&);
-
- WEBKIT_EXPORT long long encodedDataLength() const;
- WEBKIT_EXPORT void setEncodedDataLength(long long);
-
- WEBKIT_EXPORT void addRequestHeader(const WebString& name, const WebString& value);
- WEBKIT_EXPORT void addResponseHeader(const WebString& name, const WebString& value);
-
- WEBKIT_EXPORT WebString requestHeadersText() const;
- WEBKIT_EXPORT void setRequestHeadersText(const WebString&);
-
- WEBKIT_EXPORT WebString responseHeadersText() const;
- WEBKIT_EXPORT void setResponseHeadersText(const WebString&);
-
-#if WEBKIT_IMPLEMENTATION
- WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadInfo>);
- operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>() const;
-#endif
-
-private:
- WebPrivatePtr<WebCore::ResourceLoadInfo> m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebHTTPLoadInfo.h"
diff --git a/Source/WebKit/chromium/public/platform/WebICECandidateDescriptor.h b/Source/WebKit/chromium/public/platform/WebICECandidateDescriptor.h
new file mode 100644
index 000000000..56ea93146
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebICECandidateDescriptor.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebICECandidateDescriptor.h"
diff --git a/Source/WebKit/chromium/public/platform/WebICEOptions.h b/Source/WebKit/chromium/public/platform/WebICEOptions.h
new file mode 100644
index 000000000..0f2e46000
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebICEOptions.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebICEOptions.h"
diff --git a/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h b/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h
index d2c1fd814..ca3762dcb 100644
--- a/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h
+++ b/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h
@@ -31,19 +31,16 @@
#ifndef WebKitPlatformSupport_h
#define WebKitPlatformSupport_h
-#include "WebAudioBus.h"
-#include "WebAudioDevice.h"
+#include "../WebIDBKeyPath.h" // FIXME: Remove with: http://webkit.org/b/84207
#include "WebCommon.h"
-#include "WebData.h"
-#include "WebGamepads.h"
#include "WebGraphicsContext3D.h"
#include "WebLocalizedString.h"
#include "WebSerializedScriptValue.h"
#include "WebString.h"
#include "WebURL.h"
#include "WebVector.h"
-
#include <time.h>
+#include "../../../../Platform/chromium/public/Platform.h"
#ifdef WIN32
typedef void *HANDLE;
@@ -60,31 +57,21 @@ class WebFileSystem;
class WebFileUtilities;
class WebIDBFactory; // FIXME: Does this belong in platform?
class WebIDBKey; // FIXME: Does this belong in platform?
-class WebMediaStreamCenter;
-class WebMediaStreamCenterClient;
class WebMessagePortChannel; // FIXME: Does this belong in platform?
-class WebMimeRegistry;
-class WebPeerConnectionHandler;
-class WebPeerConnectionHandlerClient;
class WebPluginListBuilder; // FIXME: Does this belong in platform?
class WebSandboxSupport;
class WebSharedWorkerRepository; // FIXME: Does this belong in platform?
-class WebSocketStreamHandle;
class WebStorageNamespace; // FIXME: Does this belong in platform?
class WebThemeEngine;
-class WebThread;
-class WebURLLoader;
class WebWorkerRunLoop;
-class WebKitPlatformSupport {
+// FIXME: Eventually all these API will need to move to WebKit::Platform.
+class WebKitPlatformSupport : public Platform {
public:
// Must return non-null.
virtual WebClipboard* clipboard() { return 0; }
// Must return non-null.
- virtual WebMimeRegistry* mimeRegistry() { return 0; }
-
- // Must return non-null.
virtual WebFileUtilities* fileUtilities() { return 0; }
// May return null if sandbox support is not necessary
@@ -106,29 +93,12 @@ public:
// Return a LocalStorage namespace that corresponds to the following path.
virtual WebStorageNamespace* createLocalStorageNamespace(const WebString& path, unsigned quota) { return 0; }
- // Called when storage events fire.
+ // DEPRECATED
virtual void dispatchStorageEvent(const WebString& key, const WebString& oldValue,
const WebString& newValue, const WebString& origin,
const WebURL& url, bool isLocalStorage) { }
- // Gamepad -------------------------------------------------------------
-
- virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
-
-
- // History -------------------------------------------------------------
-
- // Returns the hash for the given canonicalized URL for use in visited
- // link coloring.
- virtual unsigned long long visitedLinkHash(
- const char* canonicalURL, size_t length) { return 0; }
-
- // Returns whether the given link hash is in the user's history. The
- // hash must have been generated by calling VisitedLinkHash().
- virtual bool isLinkVisited(unsigned long long linkHash) { return false; }
-
-
// HTML5 Database ------------------------------------------------------
#ifdef WIN32
@@ -157,49 +127,14 @@ public:
// Indexed Database ----------------------------------------------------
virtual WebIDBFactory* idbFactory() { return 0; }
- virtual void createIDBKeysFromSerializedValuesAndKeyPath(const WebVector<WebSerializedScriptValue>& values, const WebString& keyPath, WebVector<WebIDBKey>& keys) { }
- virtual WebSerializedScriptValue injectIDBKeyIntoSerializedValue(const WebIDBKey& key, const WebSerializedScriptValue& value, const WebString& keyPath) { return WebSerializedScriptValue(); }
-
-
- // Keygen --------------------------------------------------------------
-
- // Handle the <keygen> tag for generating client certificates
- // Returns a base64 encoded signed copy of a public key from a newly
- // generated key pair and the supplied challenge string. keySizeindex
- // specifies the strength of the key.
- virtual WebString signedPublicKeyAndChallengeString(unsigned keySizeIndex,
- const WebKit::WebString& challenge,
- const WebKit::WebURL& url) { return WebString(); }
-
-
-
- // Memory --------------------------------------------------------------
-
- // Returns the current space allocated for the pagefile, in MB.
- // That is committed size for Windows and virtual memory size for POSIX
- virtual size_t memoryUsageMB() { return 0; }
-
- // Same as above, but always returns actual value, without any caches.
- virtual size_t actualMemoryUsageMB() { return 0; }
-
- // If memory usage is below this threshold, do not bother forcing GC.
- virtual size_t lowMemoryUsageMB() { return 256; }
-
- // If memory usage is above this threshold, force GC more aggressively.
- virtual size_t highMemoryUsageMB() { return 1024; }
-
- // Delta of memory usage growth (vs. last actualMemoryUsageMB()) to force GC when memory usage is high.
- virtual size_t highUsageDeltaMB() { return 128; }
-
-
- // Threads -------------------------------------------------------
-
- // Creates an embedder-defined thread.
- virtual WebThread* createThread(const char* name) { return 0; }
-
- // Returns an interface to the current thread. This is owned by the
- // embedder.
- virtual WebThread* currentThread() { return 0; }
+ // FIXME: Remove WebString keyPath overload once callers are updated.
+ // http://webkit.org/b/84207
+ virtual void createIDBKeysFromSerializedValuesAndKeyPath(const WebVector<WebSerializedScriptValue>& values, const WebString& keyPath, WebVector<WebIDBKey>& keys) { createIDBKeysFromSerializedValuesAndKeyPath(values, WebIDBKeyPath(keyPath), keys); }
+ virtual void createIDBKeysFromSerializedValuesAndKeyPath(const WebVector<WebSerializedScriptValue>& values, const WebIDBKeyPath& keyPath, WebVector<WebIDBKey>& keys) { }
+ // FIXME: Remove WebString keyPath overload once callers are updated.
+ // http://webkit.org/b/84207
+ virtual WebSerializedScriptValue injectIDBKeyIntoSerializedValue(const WebIDBKey& key, const WebSerializedScriptValue& value, const WebString& keyPath) { return injectIDBKeyIntoSerializedValue(key, value, WebIDBKeyPath(keyPath)); }
+ virtual WebSerializedScriptValue injectIDBKeyIntoSerializedValue(const WebIDBKey& key, const WebSerializedScriptValue& value, const WebIDBKeyPath& keyPath) { return WebSerializedScriptValue(); }
// Message Ports -------------------------------------------------------
@@ -209,24 +144,6 @@ public:
virtual WebMessagePortChannel* createMessagePortChannel() { return 0; }
- // Network -------------------------------------------------------------
-
- // A suggestion to prefetch IP information for the given hostname.
- virtual void prefetchHostName(const WebString&) { }
-
- // Returns a new WebURLLoader instance.
- virtual WebURLLoader* createURLLoader() { return 0; }
-
- // Returns a new WebSocketStreamHandle instance.
- virtual WebSocketStreamHandle* createSocketStreamHandle() { return 0; }
-
- // Returns the User-Agent string that should be used for the given URL.
- virtual WebString userAgent(const WebURL&) { return WebString(); }
-
- // A suggestion to cache this metadata in association with this URL.
- virtual void cacheMetadata(const WebURL&, double responseTime, const char* data, size_t dataSize) { }
-
-
// Plugins -------------------------------------------------------------
// If refresh is true, then cached information should not be used to
@@ -234,174 +151,38 @@ public:
virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
- // Profiling -----------------------------------------------------------
-
- virtual void decrementStatsCounter(const char* name) { }
- virtual void incrementStatsCounter(const char* name) { }
-
- // Tracing -------------------------------------------------------------
-
- // Get a pointer to the enabled state of the given trace category. The
- // embedder can dynamically change the enabled state as trace event
- // recording is started and stopped by the application. Only long-lived
- // literal strings should be given as the category name. The implementation
- // expects the returned pointer to be held permanently in a local static. If
- // the unsigned char is non-zero, tracing is enabled. If tracing is enabled,
- // addTraceEvent is expected to be called by the trace event macros.
- virtual const unsigned char* getTraceCategoryEnabledFlag(const char* categoryName) { return 0; }
- // Add a trace event to the platform tracing system. Depending on the actual
- // enabled state, this event may be recorded or dropped. Returns
- // thresholdBeginId for use in a corresponding end addTraceEvent call.
- // - phase specifies the type of event:
- // - BEGIN ('B'): Marks the beginning of a scoped event.
- // - END ('E'): Marks the end of a scoped event.
- // - INSTANT ('I'): Standalone, instantaneous event.
- // - START ('S'): Marks the beginning of an asynchronous event (the end
- // event can occur in a different scope or thread). The id parameter is
- // used to match START/FINISH pairs.
- // - FINISH ('F'): Marks the end of an asynchronous event.
- // - COUNTER ('C'): Used to trace integer quantities that change over
- // time. The argument values are expected to be of type int.
- // - METADATA ('M'): Reserved for internal use.
- // - categoryEnabled is the pointer returned by getTraceCategoryEnabledFlag.
- // - name is the name of the event. Also used to match BEGIN/END and
- // START/FINISH pairs.
- // - id optionally allows events of the same name to be distinguished from
- // each other. For example, to trace the consutruction and destruction of
- // objects, specify the pointer as the id parameter.
- // - numArgs specifies the number of elements in argNames, argTypes, and
- // argValues.
- // - argNames is the array of argument names. Use long-lived literal strings
- // or specify the COPY flag.
- // - argTypes is the array of argument types:
- // - BOOL (1): bool
- // - UINT (2): unsigned long long
- // - INT (3): long long
- // - DOUBLE (4): double
- // - POINTER (5): void*
- // - STRING (6): char* (long-lived null-terminated char* string)
- // - COPY_STRING (7): char* (temporary null-terminated char* string)
- // - argValues is the array of argument values. Each value is the unsigned
- // long long member of a union of all supported types.
- // - thresholdBeginId optionally specifies the value returned by a previous
- // call to addTraceEvent with a BEGIN phase.
- // - threshold is used on an END phase event in conjunction with the
- // thresholdBeginId of a prior BEGIN event. The threshold is the minimum
- // number of microseconds that must have passed since the BEGIN event. If
- // less than threshold microseconds has passed, the BEGIN/END pair is
- // dropped.
- // - flags can be 0 or one or more of the following, ORed together:
- // - COPY (0x1): treat all strings (name, argNames and argValues of type
- // string) as temporary so that they will be copied by addTraceEvent.
- // - HAS_ID (0x2): use the id argument to uniquely identify the event for
- // matching with other events of the same name.
- // - MANGLE_ID (0x4): specify this flag if the id parameter is the value
- // of a pointer.
- virtual int addTraceEvent(
- char phase,
- const unsigned char* categoryEnabledFlag,
- const char* name,
- unsigned long long id,
- int numArgs,
- const char** argNames,
- const unsigned char* argTypes,
- const unsigned long long* argValues,
- int thresholdBeginId,
- long long threshold,
- unsigned char flags) { return -1; }
-
- // Callbacks for reporting histogram data.
- // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1000000, bucketCount=50 would do.
- virtual void histogramCustomCounts(const char* name, int sample, int min, int max, int bucketCount) { }
- // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
- virtual void histogramEnumeration(const char* name, int sample, int boundaryValue) { }
-
-
// Resources -----------------------------------------------------------
- // Returns a blob of data corresponding to the named resource.
- virtual WebData loadResource(const char* name) { return WebData(); }
-
- // Decodes the in-memory audio file data and returns the linear PCM audio data in the destinationBus.
- // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate.
- // Returns true on success.
- virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audioFileData, size_t dataSize, double sampleRate) { return false; }
-
// Returns a localized string resource (with substitution parameters).
virtual WebString queryLocalizedString(WebLocalizedString::Name) { return WebString(); }
virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebString& parameter) { return WebString(); }
virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebString& parameter1, const WebString& parameter2) { return WebString(); }
- // Sandbox ------------------------------------------------------------
-
- // In some browsers, a "sandbox" restricts what operations a program
- // is allowed to preform. Such operations are typically abstracted out
- // via this API, but sometimes (like in HTML 5 database opening) WebKit
- // needs to behave differently based on whether it's restricted or not.
- // In these cases (and these cases only) you can call this function.
- // It's OK for this value to be conservitive (i.e. true even if the
- // sandbox isn't active).
- virtual bool sandboxEnabled() { return false; }
-
-
// Shared Workers ------------------------------------------------------
virtual WebSharedWorkerRepository* sharedWorkerRepository() { return 0; }
- // Sudden Termination --------------------------------------------------
-
- // Disable/Enable sudden termination.
- virtual void suddenTerminationChanged(bool enabled) { }
-
-
- // System --------------------------------------------------------------
-
- // Returns a value such as "en-US".
- virtual WebString defaultLocale() { return WebString(); }
-
- // Wall clock time in seconds since the epoch.
- virtual double currentTime() { return 0; }
-
- // Monotonically increasing time in seconds from an arbitrary fixed point in the past.
- // This function is expected to return at least millisecond-precision values. For this reason,
- // it is recommended that the fixed point be no further in the past than the epoch.
- virtual double monotonicallyIncreasingTime() { return 0; }
-
- // WebKit clients must implement this funcion if they use cryptographic randomness.
- virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) = 0;
-
- // Delayed work is driven by a shared timer.
- typedef void (*SharedTimerFunction)();
- virtual void setSharedTimerFiredFunction(SharedTimerFunction timerFunction) { }
- virtual void setSharedTimerFireInterval(double) { }
- virtual void stopSharedTimer() { }
-
- // Callable from a background WebKit thread.
- virtual void callOnMainThread(void (*func)(void*), void* context) { }
-
// GPU ----------------------------------------------------------------
//
// May return null if GPU is not supported.
// Returns newly allocated and initialized offscreen WebGraphicsContext3D instance.
virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGraphicsContext3D::Attributes&) { return 0; }
- // Audio --------------------------------------------------------------
+ // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas.
+ // This will return false if the platform cannot promise that contexts will be preserved across operations like
+ // locking the screen or if the platform cannot provide a context with suitable performance characteristics.
+ //
+ // This value must be checked again after a context loss event as the platform's capabilities may have changed.
+ virtual bool canAccelerate2dCanvas() { return false; }
- virtual double audioHardwareSampleRate() { return 0; }
- virtual size_t audioHardwareBufferSize() { return 0; }
- virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned numberOfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; }
// FileSystem ----------------------------------------------------------
// Must return non-null.
virtual WebFileSystem* fileSystem() { return 0; }
- // WebRTC ----------------------------------------------------------
-
- // May return null if WebRTC functionality is not avaliable or out of resources.
- virtual WebPeerConnectionHandler* createPeerConnectionHandler(WebPeerConnectionHandlerClient*) { return 0; }
- virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterClient*) { return 0; }
+ // WebWorker ----------------------------------------------------------
virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
diff --git a/Source/WebKit/chromium/public/platform/WebLocalizedString.h b/Source/WebKit/chromium/public/platform/WebLocalizedString.h
index 0483df90b..5e7748ec6 100644
--- a/Source/WebKit/chromium/public/platform/WebLocalizedString.h
+++ b/Source/WebKit/chromium/public/platform/WebLocalizedString.h
@@ -35,46 +35,52 @@ namespace WebKit {
struct WebLocalizedString {
enum Name {
+ AXButtonActionVerb,
+ AXCheckedCheckBoxActionVerb,
+ AXHeadingText,
+ AXImageMapText,
+ AXLinkActionVerb,
+ AXLinkText,
+ AXListMarkerText,
+ AXRadioButtonActionVerb,
+ AXTextFieldActionVerb,
+ AXUncheckedCheckBoxActionVerb,
+ AXWebAreaText,
+ CalendarClear,
+ CalendarToday,
+ DateFormatDayInMonthLabel,
+ DateFormatMonthLabel,
+ DateFormatYearLabel,
DetailsLabel,
- SubmitButtonDefaultLabel,
- InputElementAltText,
- ResetButtonDefaultLabel,
FileButtonChooseFileLabel,
FileButtonChooseMultipleFilesLabel,
FileButtonNoFileSelectedLabel,
+ InputElementAltText,
+ KeygenMenuHighGradeKeySize,
+ KeygenMenuMediumGradeKeySize,
+ MissingPluginText,
MultipleFileUploadText,
+ ResetButtonDefaultLabel,
SearchableIndexIntroduction,
+ SearchMenuClearRecentSearchesText,
SearchMenuNoRecentSearchesText,
SearchMenuRecentSearchesText,
- SearchMenuClearRecentSearchesText,
- AXWebAreaText,
- AXLinkText,
- AXListMarkerText,
- AXImageMapText,
- AXHeadingText,
- AXButtonActionVerb,
- AXRadioButtonActionVerb,
- AXTextFieldActionVerb,
- AXCheckedCheckBoxActionVerb,
- AXUncheckedCheckBoxActionVerb,
- AXLinkActionVerb,
- KeygenMenuHighGradeKeySize,
- KeygenMenuMediumGradeKeySize,
+ SubmitButtonDefaultLabel,
+ ValidationPatternMismatch,
+ ValidationRangeOverflow,
+ ValidationRangeUnderflow,
+ ValidationStepMismatch,
+ ValidationTooLong,
+ ValidationTypeMismatch,
+ ValidationTypeMismatchForEmail,
+ ValidationTypeMismatchForMultipleEmail,
+ ValidationTypeMismatchForURL,
ValidationValueMissing,
ValidationValueMissingForCheckbox,
ValidationValueMissingForFile,
ValidationValueMissingForMultipleFile,
ValidationValueMissingForRadio,
ValidationValueMissingForSelect,
- ValidationTypeMismatch,
- ValidationTypeMismatchForEmail,
- ValidationTypeMismatchForMultipleEmail,
- ValidationTypeMismatchForURL,
- ValidationPatternMismatch,
- ValidationTooLong,
- ValidationRangeUnderflow,
- ValidationRangeOverflow,
- ValidationStepMismatch,
};
};
diff --git a/Source/WebKit/chromium/public/platform/WebMediaHints.h b/Source/WebKit/chromium/public/platform/WebMediaHints.h
new file mode 100644
index 000000000..b27836db5
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebMediaHints.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebMediaHints.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h b/Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h
index 8381a9a4c..80f607ce4 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h
@@ -2,53 +2,25 @@
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamCenter_h
-#define WebMediaStreamCenter_h
-
-namespace WebKit {
-
-class WebMediaStreamComponent;
-class WebMediaStreamDescriptor;
-class WebMediaStreamSourcesRequest;
-
-class WebMediaStreamCenter {
-public:
- virtual ~WebMediaStreamCenter() { }
-
- virtual void queryMediaStreamSources(const WebMediaStreamSourcesRequest&) = 0;
- virtual void didEnableMediaStreamTrack(const WebMediaStreamDescriptor&, const WebMediaStreamComponent&) = 0;
- virtual void didDisableMediaStreamTrack(const WebMediaStreamDescriptor&, const WebMediaStreamComponent&) = 0;
- virtual void didStopLocalMediaStream(const WebMediaStreamDescriptor&) = 0;
- virtual void didConstructMediaStream(const WebMediaStreamDescriptor&) = 0;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamCenter_h
-
+#include "../../../../Platform/chromium/public/WebMediaStreamCenter.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h b/Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h
index 8a0825f90..9c133c0fd 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h
@@ -2,46 +2,25 @@
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamCenterClient_h
-#define WebMediaStreamCenterClient_h
-
-namespace WebKit {
-
-class WebMediaStreamDescriptor;
-
-class WebMediaStreamCenterClient {
-public:
- virtual ~WebMediaStreamCenterClient() { }
-
- virtual void stopLocalMediaStream(const WebMediaStreamDescriptor&) = 0;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamCenterClient_h
+#include "../../../../Platform/chromium/public/WebMediaStreamCenterClient.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h b/Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h
index bee18553f..7e6802880 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h
@@ -2,70 +2,25 @@
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamComponent_h
-#define WebMediaStreamComponent_h
-
-#include "WebCommon.h"
-#include "WebNonCopyable.h"
-#include "WebPrivatePtr.h"
-
-namespace WebCore {
-class MediaStreamComponent;
-}
-
-namespace WebKit {
-
-class WebMediaStreamSource;
-class WebString;
-
-class WebMediaStreamComponent {
-public:
- WebMediaStreamComponent() { }
- ~WebMediaStreamComponent() { reset(); }
-
- WEBKIT_EXPORT void reset();
- bool isNull() const { return m_private.isNull(); }
-
- WEBKIT_EXPORT WebMediaStreamSource source() const;
- WEBKIT_EXPORT bool isEnabled() const;
-
-#if WEBKIT_IMPLEMENTATION
- WebMediaStreamComponent(WebCore::MediaStreamComponent*);
- WebMediaStreamComponent& operator=(WebCore::MediaStreamComponent*);
- operator WTF::PassRefPtr<WebCore::MediaStreamComponent>() const;
- operator WebCore::MediaStreamComponent*() const;
-#endif
-
-private:
- WebPrivatePtr<WebCore::MediaStreamComponent> m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamComponent_h
+#include "../../../../Platform/chromium/public/WebMediaStreamComponent.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h b/Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h
index 4923c97b5..97733a555 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h
@@ -1,86 +1,26 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
+ *
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamDescriptor_h
-#define WebMediaStreamDescriptor_h
-
-#include "WebCommon.h"
-#include "WebNonCopyable.h"
-#include "WebPrivatePtr.h"
-#include "WebVector.h"
-
-namespace WebCore {
-class MediaStreamDescriptor;
-}
-
-namespace WebKit {
-
-class WebMediaStreamComponent;
-class WebMediaStreamSource;
-class WebString;
-
-class WebMediaStreamDescriptor {
-public:
- WebMediaStreamDescriptor() { }
- WebMediaStreamDescriptor(const WebMediaStreamDescriptor& other) { assign(other); }
- ~WebMediaStreamDescriptor() { reset(); }
-
- WebMediaStreamDescriptor& operator=(const WebMediaStreamDescriptor& other)
- {
- assign(other);
- return *this;
- }
-
- WEBKIT_EXPORT void assign(const WebMediaStreamDescriptor&);
-
- // DEPRECATED
- WEBKIT_EXPORT void initialize(const WebString& label, const WebVector<WebMediaStreamSource>&);
-
- WEBKIT_EXPORT void initialize(const WebString& label, const WebVector<WebMediaStreamSource>& audioSources, const WebVector<WebMediaStreamSource>& videoSources);
- WEBKIT_EXPORT void reset();
- bool isNull() const { return m_private.isNull(); }
-
- WEBKIT_EXPORT WebString label() const;
-
- // DEPRECATED
- WEBKIT_EXPORT void sources(WebVector<WebMediaStreamSource>&) const;
-
- WEBKIT_EXPORT void audioSources(WebVector<WebMediaStreamComponent>&) const;
- WEBKIT_EXPORT void videoSources(WebVector<WebMediaStreamComponent>&) const;
-
-#if WEBKIT_IMPLEMENTATION
- WebMediaStreamDescriptor(WebCore::MediaStreamDescriptor*);
- WebMediaStreamDescriptor(const WTF::PassRefPtr<WebCore::MediaStreamDescriptor>&);
- operator WTF::PassRefPtr<WebCore::MediaStreamDescriptor>() const;
- operator WebCore::MediaStreamDescriptor*() const;
- WebMediaStreamDescriptor& operator=(const WTF::PassRefPtr<WebCore::MediaStreamDescriptor>&);
-#endif
-
-private:
- WebPrivatePtr<WebCore::MediaStreamDescriptor> m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamDescriptor_h
+#include "../../../../Platform/chromium/public/WebMediaStreamDescriptor.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamSource.h b/Source/WebKit/chromium/public/platform/WebMediaStreamSource.h
index 142d59866..570bfd7e0 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamSource.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamSource.h
@@ -1,86 +1,26 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamSource_h
-#define WebMediaStreamSource_h
-
-#include "WebCommon.h"
-#include "WebNonCopyable.h"
-#include "WebPrivatePtr.h"
-
-namespace WebCore {
-class MediaStreamSource;
-}
-
-namespace WebKit {
-
-class WebString;
-
-class WebMediaStreamSource {
-public:
- enum Type {
- TypeAudio,
- TypeVideo
- };
-
- WebMediaStreamSource() { }
- WebMediaStreamSource(const WebMediaStreamSource& other) { assign(other); }
- ~WebMediaStreamSource() { reset(); }
-
- WebMediaStreamSource& operator=(const WebMediaStreamSource& other)
- {
- assign(other);
- return *this;
- }
-
- WEBKIT_EXPORT void assign(const WebMediaStreamSource&);
-
- WEBKIT_EXPORT void initialize(const WebString& id, Type, const WebString& name);
- WEBKIT_EXPORT void reset();
- bool isNull() const { return m_private.isNull(); }
-
- WEBKIT_EXPORT WebString id() const;
- WEBKIT_EXPORT Type type() const;
- WEBKIT_EXPORT WebString name() const;
-
-#if WEBKIT_IMPLEMENTATION
- WebMediaStreamSource(const WTF::PassRefPtr<WebCore::MediaStreamSource>&);
- WebMediaStreamSource& operator=(WebCore::MediaStreamSource*);
- operator WTF::PassRefPtr<WebCore::MediaStreamSource>() const;
- operator WebCore::MediaStreamSource*() const;
-#endif
-
-private:
- WebPrivatePtr<WebCore::MediaStreamSource> m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamSource_h
+#include "../../../../Platform/chromium/public/WebMediaStreamSource.h"
diff --git a/Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h b/Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h
index 7fcc7c275..418215218 100644
--- a/Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h
+++ b/Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h
@@ -2,68 +2,25 @@
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaStreamSourcesRequest_h
-#define WebMediaStreamSourcesRequest_h
-
-#include "WebCommon.h"
-#include "WebPrivatePtr.h"
-
-namespace WebCore {
-class MediaStreamSourcesQueryClient;
-}
-
-namespace WebKit {
-
-class WebMediaStreamSource;
-template <typename T> class WebVector;
-
-class WebMediaStreamSourcesRequest {
-public:
- WebMediaStreamSourcesRequest() { }
- ~WebMediaStreamSourcesRequest() { reset(); }
-
- WEBKIT_EXPORT void reset();
- bool isNull() const { return m_private.isNull(); }
-
- WEBKIT_EXPORT bool audio() const;
- WEBKIT_EXPORT bool video() const;
-
- WEBKIT_EXPORT void didCompleteQuery(const WebVector<WebMediaStreamSource>& audioSources, const WebVector<WebMediaStreamSource>& videoSources) const;
-
-#if WEBKIT_IMPLEMENTATION
- WebMediaStreamSourcesRequest(const WTF::PassRefPtr<WebCore::MediaStreamSourcesQueryClient>&);
-#endif
-
-private:
- WebPrivatePtr<WebCore::MediaStreamSourcesQueryClient> m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebMediaStreamSourcesRequest_h
+#include "../../../../Platform/chromium/public/WebMediaStreamSourcesRequest.h"
diff --git a/Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h b/Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h
new file mode 100644
index 000000000..e87ec99e7
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebPeerConnection00Handler.h"
diff --git a/Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h b/Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h
new file mode 100644
index 000000000..e6ba56cfc
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebPeerConnection00HandlerClient.h"
diff --git a/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h b/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h
index bd2093577..e68710c96 100644
--- a/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h
+++ b/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h
@@ -1,73 +1,26 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPeerConnectionHandler_h
-#define WebPeerConnectionHandler_h
-
-#include "../WebSecurityOrigin.h" // FIXME: This is a layering violation.
-#include "WebString.h"
-#include "WebVector.h"
-
-namespace WebKit {
-
-class WebMediaStreamDescriptor;
-class WebPeerConnectionHandlerClient;
-
-// Note:
-// SDP stands for Session Description Protocol, which is intended for describing
-// multimedia sessions for the purposes of session announcement, session
-// invitation, and other forms of multimedia session initiation.
-//
-// More information can be found here:
-// http://tools.ietf.org/html/rfc4566
-// http://en.wikipedia.org/wiki/Session_Description_Protocol
-
-
-class WebPeerConnectionHandler {
-public:
- virtual ~WebPeerConnectionHandler() { }
-
- // DEPRECATED
- virtual void initialize(const WebString& serverConfiguration, const WebSecurityOrigin&) { };
-
- virtual void initialize(const WebString& serverConfiguration, const WebString& username) { };
-
- virtual void produceInitialOffer(const WebVector<WebMediaStreamDescriptor>& pendingAddStreams) = 0;
- virtual void handleInitialOffer(const WebString& sdp) = 0;
- virtual void processSDP(const WebString& sdp) = 0;
- virtual void processPendingStreams(const WebVector<WebMediaStreamDescriptor>& pendingAddStreams, const WebVector<WebMediaStreamDescriptor>& pendingRemoveStreams) = 0;
- virtual void sendDataStreamMessage(const char* data, size_t length) = 0;
-
- virtual void stop() = 0;
-};
-
-} // namespace WebKit
-
-#endif // WebPeerConnectionHandler_h
+#include "../../../../Platform/chromium/public/WebPeerConnectionHandler.h"
diff --git a/Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h b/Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h
index f2b1d3297..defa67c45 100644
--- a/Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h
+++ b/Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h
@@ -1,52 +1,26 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPeerConnectionHandlerClient_h
-#define WebPeerConnectionHandlerClient_h
-
-namespace WebKit {
-
-class WebMediaStreamDescriptor;
-class WebString;
-
-class WebPeerConnectionHandlerClient {
-public:
- virtual ~WebPeerConnectionHandlerClient() { }
-
- virtual void didCompleteICEProcessing() = 0;
- virtual void didGenerateSDP(const WebString& sdp) = 0;
- virtual void didReceiveDataStreamMessage(const char* data, size_t length) = 0;
- virtual void didAddRemoteStream(const WebMediaStreamDescriptor&) = 0;
- virtual void didRemoveRemoteStream(const WebMediaStreamDescriptor&) = 0;
-};
-
-} // namespace WebKit
-
-#endif // WebPeerConnectionHandlerClient_h
+#include "../../../../Platform/chromium/public/WebPeerConnectionHandlerClient.h"
diff --git a/Source/WebKit/chromium/public/platform/WebPrivateOwnPtr.h b/Source/WebKit/chromium/public/platform/WebPrivateOwnPtr.h
index 4bcabcfe6..793c127eb 100644
--- a/Source/WebKit/chromium/public/platform/WebPrivateOwnPtr.h
+++ b/Source/WebKit/chromium/public/platform/WebPrivateOwnPtr.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,53 +23,4 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPrivateOwnPtr_h
-#define WebPrivateOwnPtr_h
-
-#include "WebCommon.h"
-
-namespace WebKit {
-
-// This class is an implementation detail of the WebKit API. It exists
-// to help simplify the implementation of WebKit interfaces that merely
-// wrap a pointer to a WebCore class. It's similar to WebPrivatePtr, but it
-// wraps a naked pointer rather than a reference counted.
-// Note: you must call reset(0) on the implementation side in order to delete
-// the WebCore pointer.
-template <typename T>
-class WebPrivateOwnPtr {
-public:
- WebPrivateOwnPtr() : m_ptr(0) {}
- ~WebPrivateOwnPtr() { WEBKIT_ASSERT(!m_ptr); }
-
-#if WEBKIT_IMPLEMENTATION
- explicit WebPrivateOwnPtr(T* ptr)
- : m_ptr(ptr)
- {
- }
-
- void reset(T* ptr)
- {
- delete m_ptr;
- m_ptr = ptr;
- }
-
- T* get() const { return m_ptr; }
-
- T* operator->() const
- {
- WEBKIT_ASSERT(m_ptr);
- return m_ptr;
- }
-#endif // WEBKIT_IMPLEMENTATION
-
-private:
- T* m_ptr;
-
- WebPrivateOwnPtr(const WebPrivateOwnPtr&);
- void operator=(const WebPrivateOwnPtr&);
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebPrivateOwnPtr.h"
diff --git a/Source/WebKit/chromium/public/platform/WebReferrerPolicy.h b/Source/WebKit/chromium/public/platform/WebReferrerPolicy.h
new file mode 100644
index 000000000..194c45374
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebReferrerPolicy.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebReferrerPolicy.h"
diff --git a/Source/WebKit/chromium/public/platform/WebSessionDescriptionDescriptor.h b/Source/WebKit/chromium/public/platform/WebSessionDescriptionDescriptor.h
new file mode 100644
index 000000000..8b1d2a255
--- /dev/null
+++ b/Source/WebKit/chromium/public/platform/WebSessionDescriptionDescriptor.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "../../../../Platform/chromium/public/WebSessionDescriptionDescriptor.h"
diff --git a/Source/WebKit/chromium/public/platform/WebSocketStreamError.h b/Source/WebKit/chromium/public/platform/WebSocketStreamError.h
index f52869b3b..166042934 100644
--- a/Source/WebKit/chromium/public/platform/WebSocketStreamError.h
+++ b/Source/WebKit/chromium/public/platform/WebSocketStreamError.h
@@ -1,45 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebSocketStreamError_h
-#define WebSocketStreamError_h
-
-#include "WebCommon.h"
-
-namespace WebKit {
-
-class WebSocketStreamError {
-public:
- // FIXME: Define SocketStream Error codes and accessor methods.
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebSocketStreamError.h"
diff --git a/Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h b/Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h
index ededa0e43..0f0ceb93c 100644
--- a/Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h
+++ b/Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h
@@ -1,58 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebSocketStreamHandle_h
-#define WebSocketStreamHandle_h
-
-#include "WebCommon.h"
-
-namespace WebKit {
-
-class WebData;
-class WebSocketStreamHandleClient;
-class WebURL;
-
-class WebSocketStreamHandle {
-public:
- virtual ~WebSocketStreamHandle() { }
-
- // Connect new socket stream asynchronously.
- virtual void connect(const WebURL&, WebSocketStreamHandleClient*) = 0;
-
- // Send web socket frame data on the socket stream.
- virtual bool send(const WebData&) = 0;
-
- // Close the socket stream.
- virtual void close() = 0;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebSocketStreamHandle.h"
diff --git a/Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h b/Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h
index 82f328c6e..6ad2a27ba 100644
--- a/Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h
+++ b/Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h
@@ -1,66 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebSocketStreamHandleClient_h
-#define WebSocketStreamHandleClient_h
-
-#include "WebCommon.h"
-
-namespace WebKit {
-
-class WebData;
-class WebSocketStreamError;
-class WebSocketStreamHandle;
-class WebURL;
-
-class WebSocketStreamHandleClient {
-public:
-
- // Called when Socket Stream is opened.
- virtual void didOpenStream(WebSocketStreamHandle*, int /* maxPendingSendAllowed */) = 0;
-
- // Called when |amountSent| bytes are sent.
- virtual void didSendData(WebSocketStreamHandle*, int /* amountSent */) = 0;
-
- // Called when data are received.
- virtual void didReceiveData(WebSocketStreamHandle*, const WebData&) = 0;
-
- // Called when Socket Stream is closed.
- virtual void didClose(WebSocketStreamHandle*) = 0;
-
- // Called when Socket Stream has an error.
- virtual void didFail(WebSocketStreamHandle*, const WebSocketStreamError&) = 0;
-
- // FIXME: auth challenge for proxy
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebSocketStreamHandleClient.h"
diff --git a/Source/WebKit/chromium/public/platform/WebThread.h b/Source/WebKit/chromium/public/platform/WebThread.h
index b54bee849..5ad4b46e3 100644
--- a/Source/WebKit/chromium/public/platform/WebThread.h
+++ b/Source/WebKit/chromium/public/platform/WebThread.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -22,51 +22,5 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebThread_h
-#define WebThread_h
-#include "WebCommon.h"
-
-namespace WebKit {
-
-#define WEBTHREAD_HAS_LONGLONG_CHANGE
-
-// Provides an interface to an embedder-defined thread implementation.
-//
-// Deleting the thread blocks until all pending, non-delayed tasks have been
-// run.
-class WebThread {
-public:
- class Task {
- public:
- virtual ~Task() { }
- virtual void run() = 0;
- };
-
- class TaskObserver {
- public:
- virtual ~TaskObserver() { }
- virtual void didProcessTask() = 0;
- };
-
- virtual void postTask(Task*) = 0;
- virtual void postDelayedTask(Task*, long long delayMs) = 0;
-
- virtual void addTaskObserver(TaskObserver*) { }
- virtual void removeTaskObserver(TaskObserver*) { }
-
- // enterRunLoop() processes tasks posted to this WebThread. This call does not return until some task calls exitRunLoop().
- // WebThread does not support nesting, meaning that once the run loop is entered for a given WebThread it is not valid to
- // call enterRunLoop() again.
- virtual void enterRunLoop() = 0;
-
- // exitRunLoop() runs tasks until there are no tasks available to run, then returns control to the caller of enterRunLoop().
- // Must be called when the WebThread is running.
- virtual void exitRunLoop() = 0;
-
- virtual ~WebThread() { }
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebThread.h"
diff --git a/Source/WebKit/chromium/public/platform/WebThreadSafeData.h b/Source/WebKit/chromium/public/platform/WebThreadSafeData.h
index 19af4df2b..dfb6fadcc 100644
--- a/Source/WebKit/chromium/public/platform/WebThreadSafeData.h
+++ b/Source/WebKit/chromium/public/platform/WebThreadSafeData.h
@@ -1,77 +1,26 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebThreadSafeData_h
-#define WebThreadSafeData_h
-
-#include "WebCommon.h"
-#include "WebPrivatePtr.h"
-
-#if !WEBKIT_IMPLEMENTATION
-#include <string>
-#endif
-
-namespace WebCore { class RawData; }
-
-namespace WebKit {
-
-// A container for raw bytes. It is inexpensive to copy a WebThreadSafeData object.
-// It is safe to pass a WebThreadSafeData across threads!!!
-class WebThreadSafeData {
-public:
- WebThreadSafeData() { }
- ~WebThreadSafeData() { reset(); }
-
- WEBKIT_EXPORT void assign(const WebThreadSafeData&);
- WEBKIT_EXPORT void reset();
-
- WEBKIT_EXPORT size_t size() const;
- WEBKIT_EXPORT const char* data() const;
-
- bool isEmpty() const { return !size(); }
-
-#if WEBKIT_IMPLEMENTATION
- WebThreadSafeData(const WTF::PassRefPtr<WebCore::RawData>&);
- WebThreadSafeData& operator=(const WTF::PassRefPtr<WebCore::RawData>&);
-#else
- operator std::string() const
- {
- size_t len = size();
- return len ? std::string(data(), len) : std::string();
- }
-#endif
-
-private:
- WebPrivatePtr<WebCore::RawData> m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebThreadSafeData.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURL.h b/Source/WebKit/chromium/public/platform/WebURL.h
index 707ba0896..d28c21b6f 100644
--- a/Source/WebKit/chromium/public/platform/WebURL.h
+++ b/Source/WebKit/chromium/public/platform/WebURL.h
@@ -1,158 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURL_h
-#define WebURL_h
-
-#include "WebCString.h"
-#include <googleurl/src/url_parse.h>
-
-#if WEBKIT_IMPLEMENTATION
-namespace WebCore { class KURL; }
-#else
-#include <googleurl/src/gurl.h>
-#endif
-
-namespace WebKit {
-
-class WebURL {
-public:
- ~WebURL()
- {
- }
-
- WebURL() : m_isValid(false)
- {
- }
-
- WebURL(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid)
- : m_spec(spec)
- , m_parsed(parsed)
- , m_isValid(isValid)
- {
- }
-
- WebURL(const WebURL& s)
- : m_spec(s.m_spec)
- , m_parsed(s.m_parsed)
- , m_isValid(s.m_isValid)
- {
- }
-
- WebURL& operator=(const WebURL& s)
- {
- m_spec = s.m_spec;
- m_parsed = s.m_parsed;
- m_isValid = s.m_isValid;
- return *this;
- }
-
- void assign(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid)
- {
- m_spec = spec;
- m_parsed = parsed;
- m_isValid = isValid;
- }
-
- const WebCString& spec() const
- {
- return m_spec;
- }
-
- const url_parse::Parsed& parsed() const
- {
- return m_parsed;
- }
-
- bool isValid() const
- {
- return m_isValid;
- }
-
- bool isEmpty() const
- {
- return m_spec.isEmpty();
- }
-
- bool isNull() const
- {
- return m_spec.isEmpty();
- }
-
-#if WEBKIT_IMPLEMENTATION
- WebURL(const WebCore::KURL&);
- WebURL& operator=(const WebCore::KURL&);
- operator WebCore::KURL() const;
-#else
- WebURL(const GURL& g)
- : m_spec(g.possibly_invalid_spec())
- , m_parsed(g.parsed_for_possibly_invalid_spec())
- , m_isValid(g.is_valid())
- {
- }
-
- WebURL& operator=(const GURL& g)
- {
- m_spec = g.possibly_invalid_spec();
- m_parsed = g.parsed_for_possibly_invalid_spec();
- m_isValid = g.is_valid();
- return *this;
- }
-
- operator GURL() const
- {
- return isNull() ? GURL() : GURL(m_spec.data(), m_spec.length(), m_parsed, m_isValid);
- }
-#endif
-
-private:
- WebCString m_spec; // UTF-8 encoded
- url_parse::Parsed m_parsed;
- bool m_isValid;
-};
-
-inline bool operator<(const WebURL& a, const WebURL& b)
-{
- return a.spec() < b.spec();
-}
-
-inline bool operator==(const WebURL& a, const WebURL& b)
-{
- return !a.spec().compare(b.spec());
-}
-
-inline bool operator!=(const WebURL& a, const WebURL& b)
-{
- return !(a == b);
-}
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURL.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLError.h b/Source/WebKit/chromium/public/platform/WebURLError.h
index 862dbeaa3..8f0c15627 100644
--- a/Source/WebKit/chromium/public/platform/WebURLError.h
+++ b/Source/WebKit/chromium/public/platform/WebURLError.h
@@ -1,73 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLError_h
-#define WebURLError_h
-
-#include "WebString.h"
-#include "WebURL.h"
-
-#if defined(WEBKIT_IMPLEMENTATION)
-namespace WebCore { class ResourceError; }
-#endif
-
-namespace WebKit {
-
-struct WebURLError {
- // A namespace for "reason" to support various layers generating
- // resource errors. WebKit does not care about the value of this
- // string as it will just be passed via callbacks to the consumer.
- WebString domain;
-
- // A numeric error code detailing the reason for this error. A value
- // of 0 means no error. WebKit does not interpret the meaning of other
- // values and normally just forwards this error information back to the
- // embedder (see for example WebFrameClient).
- int reason;
-
- // A flag showing whether this error should be treated as a cancellation,
- // e.g. we do not show console errors for cancellations.
- bool isCancellation;
-
- // The url that failed to load.
- WebURL unreachableURL;
-
- WebURLError() : reason(0), isCancellation(false) { }
-
-#if defined(WEBKIT_IMPLEMENTATION)
- WebURLError(const WebCore::ResourceError&);
- WebURLError& operator=(const WebCore::ResourceError&);
- operator WebCore::ResourceError() const;
-#endif
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLError.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLLoadTiming.h b/Source/WebKit/chromium/public/platform/WebURLLoadTiming.h
index 839276bfb..7cc0dd844 100644
--- a/Source/WebKit/chromium/public/platform/WebURLLoadTiming.h
+++ b/Source/WebKit/chromium/public/platform/WebURLLoadTiming.h
@@ -1,108 +1,26 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLLoadTiming_h
-#define WebURLLoadTiming_h
-
-#include "WebCommon.h"
-#include "WebPrivatePtr.h"
-
-namespace WebCore { class ResourceLoadTiming; }
-
-namespace WebKit {
-class WebString;
-
-class WebURLLoadTiming {
-public:
- ~WebURLLoadTiming() { reset(); }
-
- WebURLLoadTiming() { }
- WebURLLoadTiming(const WebURLLoadTiming& d) { assign(d); }
- WebURLLoadTiming& operator=(const WebURLLoadTiming& d)
- {
- assign(d);
- return *this;
- }
-
- WEBKIT_EXPORT void initialize();
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebURLLoadTiming&);
-
- bool isNull() const { return m_private.isNull(); }
-
- WEBKIT_EXPORT double requestTime() const;
- WEBKIT_EXPORT void setRequestTime(double);
-
- WEBKIT_EXPORT int proxyStart() const;
- WEBKIT_EXPORT void setProxyStart(int);
-
- WEBKIT_EXPORT int proxyEnd() const;
- WEBKIT_EXPORT void setProxyEnd(int);
-
- WEBKIT_EXPORT int dnsStart() const;
- WEBKIT_EXPORT void setDNSStart(int);
-
- WEBKIT_EXPORT int dnsEnd() const;
- WEBKIT_EXPORT void setDNSEnd(int);
-
- WEBKIT_EXPORT int connectStart() const;
- WEBKIT_EXPORT void setConnectStart(int);
-
- WEBKIT_EXPORT int connectEnd() const;
- WEBKIT_EXPORT void setConnectEnd(int);
-
- WEBKIT_EXPORT int sendStart() const;
- WEBKIT_EXPORT void setSendStart(int);
-
- WEBKIT_EXPORT int sendEnd() const;
- WEBKIT_EXPORT void setSendEnd(int);
-
- WEBKIT_EXPORT int receiveHeadersEnd() const;
- WEBKIT_EXPORT void setReceiveHeadersEnd(int);
-
- WEBKIT_EXPORT int sslStart() const;
- WEBKIT_EXPORT void setSSLStart(int);
-
- WEBKIT_EXPORT int sslEnd() const;
- WEBKIT_EXPORT void setSSLEnd(int);
-
-#if WEBKIT_IMPLEMENTATION
- WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&);
- WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&);
- operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const;
-#endif
-
-private:
- WebPrivatePtr<WebCore::ResourceLoadTiming> m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLLoadTiming.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLLoader.h b/Source/WebKit/chromium/public/platform/WebURLLoader.h
index a47b986b9..de437843b 100644
--- a/Source/WebKit/chromium/public/platform/WebURLLoader.h
+++ b/Source/WebKit/chromium/public/platform/WebURLLoader.h
@@ -1,71 +1,26 @@
/*
- * Copyright (C) 2009, 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLLoader_h
-#define WebURLLoader_h
-
-#include "WebCommon.h"
-
-namespace WebKit {
-
-class WebData;
-class WebURLLoaderClient;
-class WebURLRequest;
-class WebURLResponse;
-struct WebURLError;
-
-class WebURLLoader {
-public:
- // The WebURLLoader may be deleted in a call to its client.
- virtual ~WebURLLoader() {}
-
- // Load the request synchronously, returning results directly to the
- // caller upon completion. There is no mechanism to interrupt a
- // synchronous load!!
- virtual void loadSynchronously(const WebURLRequest&,
- WebURLResponse&, WebURLError&, WebData& data) = 0;
-
- // Load the request asynchronously, sending notifications to the given
- // client. The client will receive no further notifications if the
- // loader is disposed before it completes its work.
- virtual void loadAsynchronously(const WebURLRequest&,
- WebURLLoaderClient*) = 0;
-
- // Cancels an asynchronous load. This will appear as a load error to
- // the client.
- virtual void cancel() = 0;
-
- // Suspends/resumes an asynchronous load.
- virtual void setDefersLoading(bool) = 0;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLLoader.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLLoaderClient.h b/Source/WebKit/chromium/public/platform/WebURLLoaderClient.h
index 3313a9c03..49cef3e56 100644
--- a/Source/WebKit/chromium/public/platform/WebURLLoaderClient.h
+++ b/Source/WebKit/chromium/public/platform/WebURLLoaderClient.h
@@ -1,78 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLLoaderClient_h
-#define WebURLLoaderClient_h
-
-namespace WebKit {
-
-class WebURLLoader;
-class WebURLRequest;
-class WebURLResponse;
-struct WebURLError;
-
-class WebURLLoaderClient {
-public:
- // Called when following a redirect. |newRequest| contains the request
- // generated by the redirect. The client may modify |newRequest|.
- virtual void willSendRequest(
- WebURLLoader*, WebURLRequest& newRequest, const WebURLResponse& redirectResponse) { }
-
- // Called to report upload progress. The bytes reported correspond to
- // the HTTP message body.
- virtual void didSendData(
- WebURLLoader*, unsigned long long bytesSent, unsigned long long totalBytesToBeSent) { }
-
- // Called when response headers are received.
- virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) { }
-
- // Called when a chunk of response data is downloaded. This is only called
- // if WebURLRequest's downloadToFile flag was set to true.
- virtual void didDownloadData(WebURLLoader*, int dataLength) { }
-
- // Called when a chunk of response data is received.
- virtual void didReceiveData(WebURLLoader*, const char* data, int dataLength, int encodedDataLength) { }
-
- // Called when a chunk of renderer-generated metadata is received from the cache.
- virtual void didReceiveCachedMetadata(WebURLLoader*, const char* data, int dataLength) { }
-
- // Called when the load completes successfully.
- virtual void didFinishLoading(WebURLLoader*, double finishTime) { }
-
- // Called when the load completes with an error.
- virtual void didFail(WebURLLoader*, const WebURLError&) { }
-
-protected:
- virtual ~WebURLLoaderClient() { }
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLLoaderClient.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLRequest.h b/Source/WebKit/chromium/public/platform/WebURLRequest.h
index adf2f2e23..38c0e52a0 100644
--- a/Source/WebKit/chromium/public/platform/WebURLRequest.h
+++ b/Source/WebKit/chromium/public/platform/WebURLRequest.h
@@ -1,199 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLRequest_h
-#define WebURLRequest_h
-
-#include "WebCommon.h"
-#include "WebHTTPBody.h"
-
-#if defined(WEBKIT_IMPLEMENTATION)
-namespace WebCore { class ResourceRequest; }
-#endif
-
-namespace WebKit {
-
-class WebCString;
-class WebHTTPBody;
-class WebHTTPHeaderVisitor;
-class WebString;
-class WebURL;
-class WebURLRequestPrivate;
-
-class WebURLRequest {
-public:
- enum CachePolicy {
- UseProtocolCachePolicy, // normal load
- ReloadIgnoringCacheData, // reload
- ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale data
- ReturnCacheDataDontLoad, // results of a post - allow stale data and only use cache
- };
-
- enum TargetType {
- TargetIsMainFrame = 0,
- TargetIsSubframe = 1,
- TargetIsSubresource = 2,
- TargetIsStyleSheet = 3,
- TargetIsScript = 4,
- TargetIsFontResource = 5,
- TargetIsImage = 6,
- TargetIsObject = 7,
- TargetIsMedia = 8,
- TargetIsWorker = 9,
- TargetIsSharedWorker = 10,
- TargetIsPrefetch = 11,
- TargetIsPrerender = 12,
- TargetIsFavicon = 13,
- TargetIsXHR = 14,
- TargetIsTextTrack = 15,
- TargetIsUnspecified = 16,
- };
-
- class ExtraData {
- public:
- virtual ~ExtraData() { }
- };
-
- ~WebURLRequest() { reset(); }
-
- WebURLRequest() : m_private(0) { }
- WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); }
- WebURLRequest& operator=(const WebURLRequest& r)
- {
- assign(r);
- return *this;
- }
-
- explicit WebURLRequest(const WebURL& url) : m_private(0)
- {
- initialize();
- setURL(url);
- }
-
- WEBKIT_EXPORT void initialize();
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebURLRequest&);
-
- WEBKIT_EXPORT bool isNull() const;
-
- WEBKIT_EXPORT WebURL url() const;
- WEBKIT_EXPORT void setURL(const WebURL&);
-
- // Used to implement third-party cookie blocking.
- WEBKIT_EXPORT WebURL firstPartyForCookies() const;
- WEBKIT_EXPORT void setFirstPartyForCookies(const WebURL&);
-
- WEBKIT_EXPORT bool allowCookies() const;
- WEBKIT_EXPORT void setAllowCookies(bool);
-
- // Controls whether user name, password, and cookies may be sent with the
- // request. (If false, this overrides allowCookies.)
- WEBKIT_EXPORT bool allowStoredCredentials() const;
- WEBKIT_EXPORT void setAllowStoredCredentials(bool);
-
- WEBKIT_EXPORT CachePolicy cachePolicy() const;
- WEBKIT_EXPORT void setCachePolicy(CachePolicy);
-
- WEBKIT_EXPORT WebString httpMethod() const;
- WEBKIT_EXPORT void setHTTPMethod(const WebString&);
-
- WEBKIT_EXPORT WebString httpHeaderField(const WebString& name) const;
- WEBKIT_EXPORT void setHTTPHeaderField(const WebString& name, const WebString& value);
- WEBKIT_EXPORT void addHTTPHeaderField(const WebString& name, const WebString& value);
- WEBKIT_EXPORT void clearHTTPHeaderField(const WebString& name);
- WEBKIT_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
-
- WEBKIT_EXPORT WebHTTPBody httpBody() const;
- WEBKIT_EXPORT void setHTTPBody(const WebHTTPBody&);
-
- // Controls whether upload progress events are generated when a request
- // has a body.
- WEBKIT_EXPORT bool reportUploadProgress() const;
- WEBKIT_EXPORT void setReportUploadProgress(bool);
-
- // Controls whether load timing info is collected for the request.
- WEBKIT_EXPORT bool reportLoadTiming() const;
- WEBKIT_EXPORT void setReportLoadTiming(bool);
-
- // Controls whether actual headers sent and received for request are
- // collected and reported.
- WEBKIT_EXPORT bool reportRawHeaders() const;
- WEBKIT_EXPORT void setReportRawHeaders(bool);
-
- WEBKIT_EXPORT TargetType targetType() const;
- WEBKIT_EXPORT void setTargetType(TargetType);
-
- // True if the request was user initiated.
- WEBKIT_EXPORT bool hasUserGesture() const;
- WEBKIT_EXPORT void setHasUserGesture(bool);
-
- // A consumer controlled value intended to be used to identify the
- // requestor.
- WEBKIT_EXPORT int requestorID() const;
- WEBKIT_EXPORT void setRequestorID(int);
-
- // A consumer controlled value intended to be used to identify the
- // process of the requestor.
- WEBKIT_EXPORT int requestorProcessID() const;
- WEBKIT_EXPORT void setRequestorProcessID(int);
-
- // Allows the request to be matched up with its app cache host.
- WEBKIT_EXPORT int appCacheHostID() const;
- WEBKIT_EXPORT void setAppCacheHostID(int);
-
- // If true, the response body will be downloaded to a file managed by the
- // WebURLLoader. See WebURLResponse::downloadedFilePath.
- WEBKIT_EXPORT bool downloadToFile() const;
- WEBKIT_EXPORT void setDownloadToFile(bool);
-
- // Extra data associated with the underlying resource request. Resource
- // requests can be copied. If non-null, each copy of a resource requests
- // holds a pointer to the extra data, and the extra data pointer will be
- // deleted when the last resource request is destroyed. Setting the extra
- // data pointer will cause the underlying resource request to be
- // dissociated from any existing non-null extra data pointer.
- WEBKIT_EXPORT ExtraData* extraData() const;
- WEBKIT_EXPORT void setExtraData(ExtraData*);
-
-#if defined(WEBKIT_IMPLEMENTATION)
- WebCore::ResourceRequest& toMutableResourceRequest();
- const WebCore::ResourceRequest& toResourceRequest() const;
-#endif
-
-protected:
- void assign(WebURLRequestPrivate*);
-
-private:
- WebURLRequestPrivate* m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLRequest.h"
diff --git a/Source/WebKit/chromium/public/platform/WebURLResponse.h b/Source/WebKit/chromium/public/platform/WebURLResponse.h
index 8d53eac38..29cbd614b 100644
--- a/Source/WebKit/chromium/public/platform/WebURLResponse.h
+++ b/Source/WebKit/chromium/public/platform/WebURLResponse.h
@@ -1,200 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLResponse_h
-#define WebURLResponse_h
-
-#include "WebCommon.h"
-#include "WebPrivateOwnPtr.h"
-
-#if defined(WEBKIT_IMPLEMENTATION)
-namespace WebCore { class ResourceResponse; }
-#endif
-
-namespace WebKit {
-
-class WebCString;
-class WebHTTPHeaderVisitor;
-class WebHTTPLoadInfo;
-class WebString;
-class WebURL;
-class WebURLLoadTiming;
-class WebURLResponsePrivate;
-
-class WebURLResponse {
-public:
- class ExtraData {
- public:
- virtual ~ExtraData() { }
- };
-
- ~WebURLResponse() { reset(); }
-
- WebURLResponse() : m_private(0) { }
- WebURLResponse(const WebURLResponse& r) : m_private(0) { assign(r); }
- WebURLResponse& operator=(const WebURLResponse& r)
- {
- assign(r);
- return *this;
- }
-
- explicit WebURLResponse(const WebURL& url) : m_private(0)
- {
- initialize();
- setURL(url);
- }
-
- WEBKIT_EXPORT void initialize();
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebURLResponse&);
-
- WEBKIT_EXPORT bool isNull() const;
-
- WEBKIT_EXPORT WebURL url() const;
- WEBKIT_EXPORT void setURL(const WebURL&);
-
- WEBKIT_EXPORT unsigned connectionID() const;
- WEBKIT_EXPORT void setConnectionID(unsigned);
-
- WEBKIT_EXPORT bool connectionReused() const;
- WEBKIT_EXPORT void setConnectionReused(bool);
-
- WEBKIT_EXPORT WebURLLoadTiming loadTiming();
- WEBKIT_EXPORT void setLoadTiming(const WebURLLoadTiming&);
-
- WEBKIT_EXPORT WebHTTPLoadInfo httpLoadInfo();
- WEBKIT_EXPORT void setHTTPLoadInfo(const WebHTTPLoadInfo&);
-
- WEBKIT_EXPORT double responseTime() const;
- WEBKIT_EXPORT void setResponseTime(double);
-
- WEBKIT_EXPORT WebString mimeType() const;
- WEBKIT_EXPORT void setMIMEType(const WebString&);
-
- WEBKIT_EXPORT long long expectedContentLength() const;
- WEBKIT_EXPORT void setExpectedContentLength(long long);
-
- WEBKIT_EXPORT WebString textEncodingName() const;
- WEBKIT_EXPORT void setTextEncodingName(const WebString&);
-
- WEBKIT_EXPORT WebString suggestedFileName() const;
- WEBKIT_EXPORT void setSuggestedFileName(const WebString&);
-
- WEBKIT_EXPORT int httpStatusCode() const;
- WEBKIT_EXPORT void setHTTPStatusCode(int);
-
- WEBKIT_EXPORT WebString httpStatusText() const;
- WEBKIT_EXPORT void setHTTPStatusText(const WebString&);
-
- WEBKIT_EXPORT WebString httpHeaderField(const WebString& name) const;
- WEBKIT_EXPORT void setHTTPHeaderField(const WebString& name, const WebString& value);
- WEBKIT_EXPORT void addHTTPHeaderField(const WebString& name, const WebString& value);
- WEBKIT_EXPORT void clearHTTPHeaderField(const WebString& name);
- WEBKIT_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
-
- WEBKIT_EXPORT double lastModifiedDate() const;
- WEBKIT_EXPORT void setLastModifiedDate(double);
-
- WEBKIT_EXPORT long long appCacheID() const;
- WEBKIT_EXPORT void setAppCacheID(long long);
-
- WEBKIT_EXPORT WebURL appCacheManifestURL() const;
- WEBKIT_EXPORT void setAppCacheManifestURL(const WebURL&);
-
- // A consumer controlled value intended to be used to record opaque
- // security info related to this request.
- WEBKIT_EXPORT WebCString securityInfo() const;
- WEBKIT_EXPORT void setSecurityInfo(const WebCString&);
-
-#if defined(WEBKIT_IMPLEMENTATION)
- WebCore::ResourceResponse& toMutableResourceResponse();
- const WebCore::ResourceResponse& toResourceResponse() const;
-#endif
-
- // Flag whether this request was served from the disk cache entry.
- WEBKIT_EXPORT bool wasCached() const;
- WEBKIT_EXPORT void setWasCached(bool);
-
- // Flag whether this request was loaded via the SPDY protocol or not.
- // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy
- WEBKIT_EXPORT bool wasFetchedViaSPDY() const;
- WEBKIT_EXPORT void setWasFetchedViaSPDY(bool);
-
- // Flag whether this request was loaded after the TLS/Next-Protocol-Negotiation was used.
- // This is related to SPDY.
- WEBKIT_EXPORT bool wasNpnNegotiated() const;
- WEBKIT_EXPORT void setWasNpnNegotiated(bool);
-
- // Flag whether this request was made when "Alternate-Protocol: xxx"
- // is present in server's response.
- WEBKIT_EXPORT bool wasAlternateProtocolAvailable() const;
- WEBKIT_EXPORT void setWasAlternateProtocolAvailable(bool);
-
- // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc).
- WEBKIT_EXPORT bool wasFetchedViaProxy() const;
- WEBKIT_EXPORT void setWasFetchedViaProxy(bool);
-
- // Flag whether this request is part of a multipart response.
- WEBKIT_EXPORT bool isMultipartPayload() const;
- WEBKIT_EXPORT void setIsMultipartPayload(bool);
-
- // This indicates the location of a downloaded response if the
- // WebURLRequest had the downloadToFile flag set to true. This file path
- // remains valid for the lifetime of the WebURLLoader used to create it.
- WEBKIT_EXPORT WebString downloadFilePath() const;
- WEBKIT_EXPORT void setDownloadFilePath(const WebString&);
-
- // Remote IP address of the socket which fetched this resource.
- WEBKIT_EXPORT WebString remoteIPAddress() const;
- WEBKIT_EXPORT void setRemoteIPAddress(const WebString&);
-
- // Remote port number of the socket which fetched this resource.
- WEBKIT_EXPORT unsigned short remotePort() const;
- WEBKIT_EXPORT void setRemotePort(unsigned short);
-
- // Extra data associated with the underlying resource response. Resource
- // responses can be copied. If non-null, each copy of a resource response
- // holds a pointer to the extra data, and the extra data pointer will be
- // deleted when the last resource response is destroyed. Setting the extra
- // data pointer will cause the underlying resource response to be
- // dissociated from any existing non-null extra data pointer.
- WEBKIT_EXPORT ExtraData* extraData() const;
- WEBKIT_EXPORT void setExtraData(ExtraData*);
-
-protected:
- void assign(WebURLResponsePrivate*);
-
-private:
- WebURLResponsePrivate* m_private;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebURLResponse.h"
diff --git a/Source/WebKit/chromium/public/platform/WebVector.h b/Source/WebKit/chromium/public/platform/WebVector.h
index bb02abcdf..372147789 100644
--- a/Source/WebKit/chromium/public/platform/WebVector.h
+++ b/Source/WebKit/chromium/public/platform/WebVector.h
@@ -1,186 +1,26 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
+ * modification, are permitted provided that the following conditions
+ * are met:
*
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebVector_h
-#define WebVector_h
-
-#include "WebCommon.h"
-
-#include <algorithm>
-
-namespace WebKit {
-
-// A simple vector class.
-//
-// Sample usage:
-//
-// void Foo(WebVector<int>& result)
-// {
-// WebVector<int> data(10);
-// for (size_t i = 0; i < data.size(); ++i)
-// data[i] = ...
-// result.swap(data);
-// }
-//
-// It is also possible to assign from other types of random access
-// containers:
-//
-// void Foo(const std::vector<std::string>& input)
-// {
-// WebVector<WebCString> cstrings = input;
-// ...
-// }
-//
-template <typename T>
-class WebVector {
-public:
- typedef T ValueType;
-
- ~WebVector()
- {
- destroy();
- }
-
- explicit WebVector(size_t size = 0)
- {
- initialize(size);
- }
-
- WebVector(const WebVector<T>& other)
- {
- initializeFrom(other.m_ptr, other.m_size);
- }
-
- template <typename C>
- WebVector(const C& other)
- {
- initializeFrom(other.size() ? &other[0] : 0, other.size());
- }
-
- WebVector& operator=(const WebVector& other)
- {
- if (this != &other)
- assign(other);
- return *this;
- }
-
- template <typename C>
- WebVector<T>& operator=(const C& other)
- {
- if (this != reinterpret_cast<const WebVector<T>*>(&other))
- assign(other);
- return *this;
- }
-
- template <typename C>
- void assign(const C& other)
- {
- assign(other.size() ? &other[0] : 0, other.size());
- }
-
- template <typename U>
- void assign(const U* values, size_t size)
- {
- destroy();
- initializeFrom(values, size);
- }
-
- size_t size() const { return m_size; }
- bool isEmpty() const { return !m_size; }
-
- T& operator[](size_t i)
- {
- WEBKIT_ASSERT(i < m_size);
- return m_ptr[i];
- }
- const T& operator[](size_t i) const
- {
- WEBKIT_ASSERT(i < m_size);
- return m_ptr[i];
- }
-
- bool contains(const T& value) const
- {
- for (size_t i = 0; i < m_size; i++) {
- if (m_ptr[i] == value)
- return true;
- }
- return false;
- }
-
- T* data() { return m_ptr; }
- const T* data() const { return m_ptr; }
-
- void swap(WebVector<T>& other)
- {
- std::swap(m_ptr, other.m_ptr);
- std::swap(m_size, other.m_size);
- }
-
-private:
- void initialize(size_t size)
- {
- m_size = size;
- if (!m_size)
- m_ptr = 0;
- else {
- m_ptr = static_cast<T*>(::operator new(sizeof(T) * m_size));
- for (size_t i = 0; i < m_size; ++i)
- new (&m_ptr[i]) T();
- }
- }
-
- template <typename U>
- void initializeFrom(const U* values, size_t size)
- {
- m_size = size;
- if (!m_size)
- m_ptr = 0;
- else {
- m_ptr = static_cast<T*>(::operator new(sizeof(T) * m_size));
- for (size_t i = 0; i < m_size; ++i)
- new (&m_ptr[i]) T(values[i]);
- }
- }
-
- void destroy()
- {
- for (size_t i = 0; i < m_size; ++i)
- m_ptr[i].~T();
- ::operator delete(m_ptr);
- }
-
- T* m_ptr;
- size_t m_size;
-};
-
-} // namespace WebKit
-
-#endif
+#include "../../../../Platform/chromium/public/WebVector.h"