Index: public/web/WebPermissionClient.h |
diff --git a/public/web/WebPermissionClient.h b/public/web/WebPermissionClient.h |
index 474d4f840ddaa6e25394fab263448e9c94b9e5ff..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,9 +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; } |
+ virtual bool requestFileSystemAccessSync() { return true; } |
- virtual void requestFileSystemAccess(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(); } |
Xi Han
2014/05/20 16:13:32
Add default implementation here.
|
// Controls whether images are allowed for this frame. |
virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { return enabledPerSettings; } |