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

Side by Side Diff: public/web/WebPermissionClient.h

Issue 289793002: Rename sync and async file system access methods in blink. [blink] (1/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initial 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 class WebURL; 40 class WebURL;
41 41
42 class WebPermissionClient { 42 class WebPermissionClient {
43 public: 43 public:
44 // Controls whether access to Web Databases is allowed for this frame. 44 // Controls whether access to Web Databases is allowed for this frame.
45 virtual bool allowDatabase(const WebString& name, const WebString& displayNa me, unsigned long estimatedSize) { return true; } 45 virtual bool allowDatabase(const WebString& name, const WebString& displayNa me, unsigned long estimatedSize) { return true; }
46 46
47 // Controls whether access to File System is allowed for this frame. 47 // Controls whether access to File System is allowed for this frame.
48 virtual bool allowFileSystem() { return true; } 48 virtual bool allowFileSystem() { return true; }
49 49
50 virtual void requestFileSystemAccess(const WebPermissionCallbacks& callbacks ) { } 50 // Controls whether access to File System is allowed for this frame.
51 virtual bool requestFileSystemAccessSync() { return true; }
52
53 virtual void requestFileSystemAccessAsync(const WebPermissionCallbacks& call backs) { }
51 54
52 // Controls whether images are allowed for this frame. 55 // Controls whether images are allowed for this frame.
53 virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { r eturn enabledPerSettings; } 56 virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { r eturn enabledPerSettings; }
54 57
55 // Controls whether access to Indexed DB are allowed for this frame. 58 // Controls whether access to Indexed DB are allowed for this frame.
56 virtual bool allowIndexedDB(const WebString& name, const WebSecurityOrigin&) { return true; } 59 virtual bool allowIndexedDB(const WebString& name, const WebSecurityOrigin&) { return true; }
57 60
58 // Controls whether plugins are allowed for this frame. 61 // Controls whether plugins are allowed for this frame.
59 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; } 62 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; }
60 63
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Notifies the client that the frame would have executed script if script w ere enabled. 112 // Notifies the client that the frame would have executed script if script w ere enabled.
110 virtual void didNotAllowScript() { } 113 virtual void didNotAllowScript() { }
111 114
112 protected: 115 protected:
113 ~WebPermissionClient() { } 116 ~WebPermissionClient() { }
114 }; 117 };
115 118
116 } // namespace blink 119 } // namespace blink
117 120
118 #endif 121 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698