Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3841)

Unified Diff: chrome/renderer/render_view.h

Issue 3107026: Add IPC plumbing code for FileSystem API's openFileSystem (Closed)
Patch Set: nits fix + rebase Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index fb4aa71b1fcf337bce5977112e8ca698aea7a1f7..7000d2a0995a12b04da474792877097b4acb2123 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
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698