| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // blink::WebContentSettingsClient implementation. | 60 // blink::WebContentSettingsClient implementation. |
| 61 bool allowDatabase(const blink::WebString& name, | 61 bool allowDatabase(const blink::WebString& name, |
| 62 const blink::WebString& display_name, | 62 const blink::WebString& display_name, |
| 63 unsigned long estimated_size) override; | 63 unsigned long estimated_size) override; |
| 64 void requestFileSystemAccessAsync( | 64 void requestFileSystemAccessAsync( |
| 65 const blink::WebContentSettingCallbacks& callbacks) override; | 65 const blink::WebContentSettingCallbacks& callbacks) override; |
| 66 bool allowImage(bool enabled_per_settings, | 66 bool allowImage(bool enabled_per_settings, |
| 67 const blink::WebURL& image_url) override; | 67 const blink::WebURL& image_url) override; |
| 68 bool allowIndexedDB(const blink::WebString& name, | 68 bool allowIndexedDB(const blink::WebString& name, |
| 69 const blink::WebSecurityOrigin& origin) override; | 69 const blink::WebSecurityOrigin& origin) override; |
| 70 bool allowMediaAutoplay(bool hidden) override; |
| 70 bool allowPlugins(bool enabled_per_settings) override; | 71 bool allowPlugins(bool enabled_per_settings) override; |
| 71 bool allowScript(bool enabled_per_settings) override; | 72 bool allowScript(bool enabled_per_settings) override; |
| 72 bool allowScriptFromSource(bool enabled_per_settings, | 73 bool allowScriptFromSource(bool enabled_per_settings, |
| 73 const blink::WebURL& script_url) override; | 74 const blink::WebURL& script_url) override; |
| 74 bool allowStorage(bool local) override; | 75 bool allowStorage(bool local) override; |
| 75 bool allowReadFromClipboard(bool default_value) override; | 76 bool allowReadFromClipboard(bool default_value) override; |
| 76 bool allowWriteToClipboard(bool default_value) override; | 77 bool allowWriteToClipboard(bool default_value) override; |
| 77 bool allowMutationEvents(bool default_value) override; | 78 bool allowMutationEvents(bool default_value) override; |
| 78 void didNotAllowPlugins() override; | 79 void didNotAllowPlugins() override; |
| 79 void didNotAllowScript() override; | 80 void didNotAllowScript() override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; | 162 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; |
| 162 PermissionRequestMap permission_requests_; | 163 PermissionRequestMap permission_requests_; |
| 163 | 164 |
| 164 // If true, IsWhitelistedForContentSettings will always return true. | 165 // If true, IsWhitelistedForContentSettings will always return true. |
| 165 const bool should_whitelist_; | 166 const bool should_whitelist_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 168 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 171 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |