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

Unified Diff: public/web/WebPermissionClient.h

Issue 277353002: Use asynchronized api for file system request. [blink] (3/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply Kinuko's patch. Created 6 years, 7 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 | « Source/web/WorkerPermissionClient.cpp ('k') | public/web/WebWorkerPermissionClientProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPermissionClient.h
diff --git a/public/web/WebPermissionClient.h b/public/web/WebPermissionClient.h
index 5612a9de82734e3bdbe3ae16078866f8d0bf78f6..b1e9f58c7eff0386f38024f424fd886fa0124bd1 100644
--- a/public/web/WebPermissionClient.h
+++ b/public/web/WebPermissionClient.h
@@ -31,10 +31,11 @@
#ifndef WebPermissionClient_h
#define WebPermissionClient_h
+#include "public/platform/WebPermissionCallbacks.h"
+
namespace blink {
class WebDocument;
-class WebPermissionCallbacks;
class WebSecurityOrigin;
class WebString;
class WebURL;
@@ -45,12 +46,10 @@ public:
virtual bool allowDatabase(const WebString& name, const WebString& displayName, unsigned long estimatedSize) { return true; }
// Controls whether access to File System is allowed for this frame.
- virtual bool allowFileSystem() { return true; }
-
- // Controls whether access to File System is allowed for this frame.
virtual bool requestFileSystemAccessSync() { return true; }
- virtual void requestFileSystemAccessAsync(const WebPermissionCallbacks& callbacks) { }
+ // Controls whether access to File System is allowed for this frame.
+ virtual void requestFileSystemAccessAsync(const WebPermissionCallbacks& callbacks) { WebPermissionCallbacks permissionCallbacks(callbacks); permissionCallbacks.doAllow(); }
// Controls whether images are allowed for this frame.
virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { return enabledPerSettings; }
« no previous file with comments | « Source/web/WorkerPermissionClient.cpp ('k') | public/web/WebWorkerPermissionClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698