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; } |