summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 05:48:22 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 05:48:22 +0000
commit2b06a99e03e8f69171bb3a79f2a9b58aa95345f1 (patch)
tree28b5e796f1150838169619c4febc1095fce1295e /chrome/renderer/render_view.h
parent65a3b914585cee20f1c8b213c82eaa2a5da0cb25 (diff)
downloadchromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.zip
chromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.tar.gz
chromium_src-2b06a99e03e8f69171bb3a79f2a9b58aa95345f1.tar.bz2
Add 1st cut of IPC plumbing code for FileSystem API's openFileSystem
The dispatcher host code is just a stub. BUG=32277 TESTS=none; will be added later Review URL: http://codereview.chromium.org/3107026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index fb4aa71..7000d2a 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -16,6 +16,7 @@
#include "app/surface/transport_dib.h"
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/id_map.h"
#include "base/linked_ptr.h"
#include "base/timer.h"
#include "base/weak_ptr.h"
@@ -37,6 +38,7 @@
#include "chrome/renderer/renderer_webcookiejar_impl.h"
#include "chrome/renderer/translate_helper.h"
#include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
#include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
#include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
#include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h"
@@ -544,6 +546,11 @@ class RenderView : public RenderWidget,
int active_match_ordinal,
const WebKit::WebRect& sel);
+ virtual void openFileSystem(WebKit::WebFrame* frame,
+ WebKit::WebFileSystem::Type,
+ long long size,
+ WebKit::WebFileSystemCallbacks* callbacks);
+
// WebKit::WebPageSerializerClient implementation ----------------------------
virtual void didSerializeDataForFrame(const WebKit::WebURL& frame_url,
@@ -780,6 +787,10 @@ class RenderView : public RenderWidget,
void OnNotifyRendererViewType(ViewType::Type view_type);
void OnFillPasswordForm(
const webkit_glue::PasswordFormFillData& form_data);
+ void OnOpenFileSystemRequestComplete(int request_id,
+ bool accepted,
+ const string16& name,
+ const string16& root_path);
void OnPaste();
void OnPrintingDone(int document_cookie, bool success);
void OnPrintPages();
@@ -1288,6 +1299,11 @@ class RenderView : public RenderWidget,
// External host exposed through automation controller.
ExternalHostBindings external_host_bindings_;
+ // Pending openFileSystem completion objects.
+ struct PendingOpenFileSystem;
+ IDMap<PendingOpenFileSystem, IDMapOwnPointer>
+ pending_file_system_requests_;
+
// ---------------------------------------------------------------------------
// ADDING NEW DATA? Please see if it fits appropriately in one of the above
// sections rather than throwing it randomly at the end. If you're adding a