OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 class WebSecurityOrigin; | 38 class WebSecurityOrigin; |
39 class WebString; | 39 class WebString; |
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; } | |
49 | |
50 // Controls whether access to File System is allowed for this frame. | |
51 virtual bool requestFileSystemAccessSync() { return true; } | 48 virtual bool requestFileSystemAccessSync() { return true; } |
52 | 49 |
53 virtual void requestFileSystemAccessAsync(const WebPermissionCallbacks& call
backs) { } | 50 virtual void requestFileSystemAccessAsync(const WebPermissionCallbacks& call
backs) { } |
54 | 51 |
55 // Controls whether images are allowed for this frame. | 52 // Controls whether images are allowed for this frame. |
56 virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { r
eturn enabledPerSettings; } | 53 virtual bool allowImage(bool enabledPerSettings, const WebURL& imageURL) { r
eturn enabledPerSettings; } |
57 | 54 |
58 // Controls whether access to Indexed DB are allowed for this frame. | 55 // Controls whether access to Indexed DB are allowed for this frame. |
59 virtual bool allowIndexedDB(const WebString& name, const WebSecurityOrigin&)
{ return true; } | 56 virtual bool allowIndexedDB(const WebString& name, const WebSecurityOrigin&)
{ return true; } |
60 | 57 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Notifies the client that the frame would have executed script if script w
ere enabled. | 109 // Notifies the client that the frame would have executed script if script w
ere enabled. |
113 virtual void didNotAllowScript() { } | 110 virtual void didNotAllowScript() { } |
114 | 111 |
115 protected: | 112 protected: |
116 ~WebPermissionClient() { } | 113 ~WebPermissionClient() { } |
117 }; | 114 }; |
118 | 115 |
119 } // namespace blink | 116 } // namespace blink |
120 | 117 |
121 #endif | 118 #endif |
OLD | NEW |