summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-08-11 18:17:05 +0100
committerBen Murdoch <benm@google.com>2010-08-13 12:41:54 +0100
commit45b64f60af3cbfa8c78388e35e9b669a0c284bdc (patch)
treebd6df4524a5532b7b090ab042f90e72da3085b9c /WebKit/android/WebCoreSupport
parent82eeb7b660065e6e990280e6563ca7eafe4be1cd (diff)
downloadexternal_webkit-45b64f60af3cbfa8c78388e35e9b669a0c284bdc.zip
external_webkit-45b64f60af3cbfa8c78388e35e9b669a0c284bdc.tar.gz
external_webkit-45b64f60af3cbfa8c78388e35e9b669a0c284bdc.tar.bz2
Merge WebKit at r65072: String class has moved to the WTF namespace.
See http://trac.webkit.org/changeset/65021 Change-Id: I779a8ec0c3e1e0aed8f8d1894cfc1e5ca33ee549
Diffstat (limited to 'WebKit/android/WebCoreSupport')
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp2
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.h2
-rw-r--r--WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp2
-rw-r--r--WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h1
-rwxr-xr-xWebKit/android/WebCoreSupport/GeolocationPermissions.cpp2
-rw-r--r--WebKit/android/WebCoreSupport/GeolocationPermissions.h34
-rw-r--r--WebKit/android/WebCoreSupport/InspectorClientAndroid.h4
7 files changed, 25 insertions, 22 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index 45de0d5..ec1390e 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -485,7 +485,7 @@ void ChromeClientAndroid::runOpenPanel(Frame* frame,
core->openFileChooser(chooser);
}
-void ChromeClientAndroid::chooseIconForFiles(const Vector<WebCore::String>&, FileChooser*)
+void ChromeClientAndroid::chooseIconForFiles(const Vector<WTF::String>&, FileChooser*)
{
notImplemented();
}
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.h b/WebKit/android/WebCoreSupport/ChromeClientAndroid.h
index 7137e11..d25747f 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.h
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.h
@@ -153,7 +153,7 @@ namespace android {
virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>);
virtual void setCursor(const Cursor&);
- virtual void chooseIconForFiles(const WTF::Vector<WebCore::String>&, FileChooser*);
+ virtual void chooseIconForFiles(const WTF::Vector<WTF::String>&, FileChooser*);
// Notification that the given form element has changed. This function
// will be called frequently, so handling should be very fast.
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index e77dde8..f5b8a20 100644
--- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -249,7 +249,7 @@ void FrameLoaderClientAndroid::dispatchDidReceiveIcon() {
ASSERT(m_frame);
if (m_frame->tree() && m_frame->tree()->parent())
return;
- WebCore::String url(m_frame->loader()->url().string());
+ WTF::String url(m_frame->loader()->url().string());
// Try to obtain the icon image.
WebCore::Image* icon = WebCore::iconDatabase()->iconForPageURL(
url, WebCore::IntSize(16, 16));
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h
index ddbe196..ce711a0 100644
--- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h
+++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h
@@ -30,6 +30,7 @@
#include "FrameLoaderClient.h"
#include "ResourceResponse.h"
#include "WebIconDatabase.h"
+#include <wtf/Forward.h>
namespace WebCore {
class PluginManualLoader;
diff --git a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
index b630f66..32a5660 100755
--- a/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
+++ b/WebKit/android/WebCoreSupport/GeolocationPermissions.cpp
@@ -251,7 +251,7 @@ void GeolocationPermissions::resetTemporaryPermissionStates()
m_webViewCore->geolocationPermissionsHidePrompt();
}
-const WebCore::String& GeolocationPermissions::nextOriginInQueue()
+const WTF::String& GeolocationPermissions::nextOriginInQueue()
{
static const String emptyString = "";
return m_queuedOrigins.isEmpty() ? emptyString : m_queuedOrigins[0];
diff --git a/WebKit/android/WebCoreSupport/GeolocationPermissions.h b/WebKit/android/WebCoreSupport/GeolocationPermissions.h
index e59c11b..9a1966a 100644
--- a/WebKit/android/WebCoreSupport/GeolocationPermissions.h
+++ b/WebKit/android/WebCoreSupport/GeolocationPermissions.h
@@ -82,7 +82,7 @@ namespace android {
// The new permission state is recorded and will trigger callbacks to
// geolocation objects as described above. If any other permission
// requests are queued, the next is started.
- void providePermissionState(WebCore::String origin, bool allow, bool remember);
+ void providePermissionState(WTF::String origin, bool allow, bool remember);
// Clears the temporary permission state and any pending requests. Used
// when the main frame is refreshed or navigated to a new URL.
@@ -93,14 +93,14 @@ namespace android {
// system settings are changed.
// Gets the list of all origins for which permanent permissions are
// recorded.
- typedef HashSet<WebCore::String> OriginSet;
+ typedef HashSet<WTF::String> OriginSet;
static OriginSet getOrigins();
// Gets whether the specified origin is allowed.
- static bool getAllowed(WebCore::String origin);
+ static bool getAllowed(WTF::String origin);
// Clears the permission state for the specified origin.
- static void clear(WebCore::String origin);
+ static void clear(WTF::String origin);
// Sets the permission state for the specified origin to allowed.
- static void allow(WebCore::String origin);
+ static void allow(WTF::String origin);
// Clears the permission state for all origins.
static void clearAll();
// Sets whether the GeolocationPermissions object should always deny
@@ -108,7 +108,7 @@ namespace android {
// states.
static void setAlwaysDeny(bool deny);
- static void setDatabasePath(WebCore::String path);
+ static void setDatabasePath(WTF::String path);
// Saves the permanent permissions to the DB if required.
static void maybeStorePermanentPermissions();
@@ -116,41 +116,41 @@ namespace android {
private:
// Records the permission state for the specified origin and whether
// this should be remembered.
- void recordPermissionState(WebCore::String origin, bool allow, bool remember);
+ void recordPermissionState(WTF::String origin, bool allow, bool remember);
// Used to make an asynchronous callback to the Geolocation objects.
- void makeAsynchronousCallbackToGeolocation(WebCore::String origin, bool allow);
+ void makeAsynchronousCallbackToGeolocation(WTF::String origin, bool allow);
void timerFired(WebCore::Timer<GeolocationPermissions>* timer);
// Calls back to the Geolocation objects in all frames from the
// specified origin. There may be no such objects, as the frames using
// Geolocation from the specified origin may no longer use Geolocation,
// or may have been navigated to a different origin..
- void maybeCallbackFrames(WebCore::String origin, bool allow);
+ void maybeCallbackFrames(WTF::String origin, bool allow);
// Cancels pending permission requests for the specified origin in
// other main frames (ie browser tabs). This is used when the user
// specifies permission to be remembered.
- static void cancelPendingRequestsInOtherTabs(WebCore::String origin);
- void cancelPendingRequests(WebCore::String origin);
+ static void cancelPendingRequestsInOtherTabs(WTF::String origin);
+ void cancelPendingRequests(WTF::String origin);
static void maybeLoadPermanentPermissions();
- const WebCore::String& nextOriginInQueue();
+ const WTF::String& nextOriginInQueue();
WebViewCore* m_webViewCore;
WebCore::Frame* m_mainFrame;
// A vector of the origins queued to make a permission request.
// The first in the vector is the origin currently making the request.
- typedef Vector<WebCore::String> OriginVector;
+ typedef Vector<WTF::String> OriginVector;
OriginVector m_queuedOrigins;
// A map from a queued origin to the set of frames that have requested
// permission for that origin.
typedef HashSet<WebCore::Frame*> FrameSet;
- typedef HashMap<WebCore::String, FrameSet> OriginToFramesMap;
+ typedef HashMap<WTF::String, FrameSet> OriginToFramesMap;
OriginToFramesMap m_queuedOriginsToFramesMap;
- typedef WTF::HashMap<WebCore::String, bool> PermissionsMap;
+ typedef WTF::HashMap<WTF::String, bool> PermissionsMap;
PermissionsMap m_temporaryPermissions;
static PermissionsMap s_permanentPermissions;
@@ -160,7 +160,7 @@ namespace android {
WebCore::Timer<GeolocationPermissions> m_timer;
struct CallbackData {
- WebCore::String origin;
+ WTF::String origin;
bool allow;
};
CallbackData m_callbackData;
@@ -169,7 +169,7 @@ namespace android {
static bool s_permanentPermissionsLoaded;
static bool s_permanentPermissionsModified;
- static WebCore::String s_databasePath;
+ static WTF::String s_databasePath;
};
} // namespace android
diff --git a/WebKit/android/WebCoreSupport/InspectorClientAndroid.h b/WebKit/android/WebCoreSupport/InspectorClientAndroid.h
index e3d2e69..9d734e8 100644
--- a/WebKit/android/WebCoreSupport/InspectorClientAndroid.h
+++ b/WebKit/android/WebCoreSupport/InspectorClientAndroid.h
@@ -28,6 +28,8 @@
#include "InspectorClient.h"
+#include <wtf/Forward.h>
+
namespace android {
class InspectorClientAndroid : public InspectorClient {
@@ -44,7 +46,7 @@ public:
virtual void populateSetting(const String& key, String* value) {}
virtual void storeSetting(const String& key, const String& value) {}
- virtual bool sendMessageToFrontend(const WebCore::String&) { return false; }
+ virtual bool sendMessageToFrontend(const WTF::String&) { return false; }
};
}