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 // This class provides the content settings information which tells |
| 17 // whether each feature is allowed or not. |
16 class WebContentSettingsClient { | 18 class WebContentSettingsClient { |
17 public: | 19 public: |
18 // Controls whether access to Web Databases is allowed for this frame. | 20 // Controls whether access to Web Databases is allowed for this frame. |
19 virtual bool allowDatabase(const WebString& name, | 21 virtual bool allowDatabase(const WebString& name, |
20 const WebString& displayName, | 22 const WebString& displayName, |
21 unsigned estimatedSize) { | 23 unsigned estimatedSize) { |
22 return true; | 24 return true; |
23 } | 25 } |
24 | 26 |
25 // Controls whether access to File System is allowed for this frame. | 27 // Controls whether access to File System is allowed for this frame. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Notifies the client that the frame would have executed script if script | 103 // Notifies the client that the frame would have executed script if script |
102 // were enabled. | 104 // were enabled. |
103 virtual void didNotAllowScript() {} | 105 virtual void didNotAllowScript() {} |
104 | 106 |
105 virtual ~WebContentSettingsClient() {} | 107 virtual ~WebContentSettingsClient() {} |
106 }; | 108 }; |
107 | 109 |
108 } // namespace blink | 110 } // namespace blink |
109 | 111 |
110 #endif // WebContentSettingsClient_h | 112 #endif // WebContentSettingsClient_h |
OLD | NEW |