OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebContentSettingsClient_h | 5 #ifndef WebContentSettingsClient_h |
6 #define WebContentSettingsClient_h | 6 #define WebContentSettingsClient_h |
7 | 7 |
8 #include "public/platform/WebContentSettingCallbacks.h" | 8 #include "public/platform/WebContentSettingCallbacks.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class WebSecurityOrigin; | 12 class WebSecurityOrigin; |
13 class WebString; | 13 class WebString; |
14 class WebURL; | 14 class WebURL; |
15 | 15 |
16 class WebContentSettingsClient { | 16 class WebContentSettingsClient { |
haraken
2017/04/04 11:25:32
Add a class-level comment.
| |
17 public: | 17 public: |
18 // Controls whether access to Web Databases is allowed for this frame. | 18 // Controls whether access to Web Databases is allowed for this frame. |
19 virtual bool allowDatabase(const WebString& name, | 19 virtual bool allowDatabase(const WebString& name, |
20 const WebString& displayName, | 20 const WebString& displayName, |
21 unsigned estimatedSize) { | 21 unsigned estimatedSize) { |
22 return true; | 22 return true; |
23 } | 23 } |
24 | 24 |
25 // Controls whether access to File System is allowed for this frame. | 25 // Controls whether access to File System is allowed for this frame. |
26 virtual bool requestFileSystemAccessSync() { return true; } | 26 virtual bool requestFileSystemAccessSync() { return true; } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 // Notifies the client that the frame would have executed script if script | 101 // Notifies the client that the frame would have executed script if script |
102 // were enabled. | 102 // were enabled. |
103 virtual void didNotAllowScript() {} | 103 virtual void didNotAllowScript() {} |
104 | 104 |
105 virtual ~WebContentSettingsClient() {} | 105 virtual ~WebContentSettingsClient() {} |
106 }; | 106 }; |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
109 | 109 |
110 #endif // WebContentSettingsClient_h | 110 #endif // WebContentSettingsClient_h |
OLD | NEW |