summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorpilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 16:37:53 +0000
committerpilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 16:37:53 +0000
commit18cdb0e4680927e33e8484364a6ec1cf9f77d91e (patch)
treef1b7d5a168940029844577d1e93c4ff8d3e8e827 /content
parent363b7ab54e301110dfb6c823a7a51d53871132af (diff)
downloadchromium_src-18cdb0e4680927e33e8484364a6ec1cf9f77d91e.zip
chromium_src-18cdb0e4680927e33e8484364a6ec1cf9f77d91e.tar.gz
chromium_src-18cdb0e4680927e33e8484364a6ec1cf9f77d91e.tar.bz2
Add support for WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
Upstream WebKit is migrating from WebFileSystem::Type to a new top-level WebFileSystemType (unconnected to the WebFileSystem class) in order to make other filesystem-related refactoring easier. This is behind an #ifdef so that we can make the necessary changes upstream and downstream all at once. Review URL: https://chromiumcodereview.appspot.com/12886018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/render_view_impl.cc9
-rw-r--r--content/renderer/render_view_impl.h8
-rw-r--r--content/worker/websharedworkerclient_proxy.cc4
-rw-r--r--content/worker/websharedworkerclient_proxy.h8
4 files changed, 28 insertions, 1 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index f887db4..94756a6 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -125,6 +125,7 @@
#include "third_party/skia/include/core/SkPicture.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChannel.h"
@@ -4200,7 +4201,11 @@ void RenderViewImpl::reportFindInPageSelection(int request_id,
void RenderViewImpl::openFileSystem(
WebFrame* frame,
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type,
+#else
WebFileSystem::Type type,
+#endif
long long size,
bool create,
WebFileSystemCallbacks* callbacks) {
@@ -4220,7 +4225,11 @@ void RenderViewImpl::openFileSystem(
void RenderViewImpl::deleteFileSystem(
WebFrame* frame,
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type ,
+#else
WebFileSystem::Type type ,
+#endif
WebFileSystemCallbacks* callbacks) {
DCHECK(callbacks);
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index c7758fc..37d47a3 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -641,12 +641,20 @@ class CONTENT_EXPORT RenderViewImpl
int active_match_ordinal,
const WebKit::WebRect& sel);
virtual void openFileSystem(WebKit::WebFrame* frame,
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type,
+#else
WebKit::WebFileSystem::Type type,
+#endif
long long size,
bool create,
WebKit::WebFileSystemCallbacks* callbacks);
virtual void deleteFileSystem(WebKit::WebFrame* frame,
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type,
+#else
WebKit::WebFileSystem::Type type,
+#endif
WebKit::WebFileSystemCallbacks* callbacks);
virtual void queryStorageUsageAndQuota(
WebKit::WebFrame* frame,
diff --git a/content/worker/websharedworkerclient_proxy.cc b/content/worker/websharedworkerclient_proxy.cc
index f17cdbd..469f8dd 100644
--- a/content/worker/websharedworkerclient_proxy.cc
+++ b/content/worker/websharedworkerclient_proxy.cc
@@ -161,7 +161,11 @@ bool WebSharedWorkerClientProxy::allowFileSystem() {
}
void WebSharedWorkerClientProxy::openFileSystem(
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type,
+#else
WebKit::WebFileSystem::Type type,
+#endif
long long size,
bool create,
WebKit::WebFileSystemCallbacks* callbacks) {
diff --git a/content/worker/websharedworkerclient_proxy.h b/content/worker/websharedworkerclient_proxy.h
index 504cad8..cfbcaf5 100644
--- a/content/worker/websharedworkerclient_proxy.h
+++ b/content/worker/websharedworkerclient_proxy.h
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "ipc/ipc_channel.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient.h"
namespace WebKit {
@@ -74,7 +75,12 @@ class WebSharedWorkerClientProxy : public WebKit::WebSharedWorkerClient {
const WebKit::WebString& display_name,
unsigned long estimated_size);
virtual bool allowFileSystem();
- virtual void openFileSystem(WebKit::WebFileSystem::Type type,
+ virtual void openFileSystem(
+#ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
+ WebKit::WebFileSystemType type,
+#else
+ WebKit::WebFileSystem::Type type,
+#endif
long long size,
bool create,
WebKit::WebFileSystemCallbacks* callbacks);