| 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 #include <string> | 10 #include <string> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 bool allowPlugins(bool enabled_per_settings) override; | 73 bool allowPlugins(bool enabled_per_settings) override; |
| 74 bool allowScript(bool enabled_per_settings) override; | 74 bool allowScript(bool enabled_per_settings) override; |
| 75 bool allowScriptFromSource(bool enabled_per_settings, | 75 bool allowScriptFromSource(bool enabled_per_settings, |
| 76 const blink::WebURL& script_url) override; | 76 const blink::WebURL& script_url) override; |
| 77 bool allowStorage(bool local) override; | 77 bool allowStorage(bool local) override; |
| 78 bool allowReadFromClipboard(bool default_value) override; | 78 bool allowReadFromClipboard(bool default_value) override; |
| 79 bool allowWriteToClipboard(bool default_value) override; | 79 bool allowWriteToClipboard(bool default_value) override; |
| 80 bool allowMutationEvents(bool default_value) override; | 80 bool allowMutationEvents(bool default_value) override; |
| 81 void didNotAllowPlugins() override; | 81 void didNotAllowPlugins() override; |
| 82 void didNotAllowScript() override; | 82 void didNotAllowScript() override; |
| 83 void didUseKeygen() override; | |
| 84 bool allowRunningInsecureContent(bool allowed_per_settings, | 83 bool allowRunningInsecureContent(bool allowed_per_settings, |
| 85 const blink::WebSecurityOrigin& context, | 84 const blink::WebSecurityOrigin& context, |
| 86 const blink::WebURL& url) override; | 85 const blink::WebURL& url) override; |
| 87 bool allowAutoplay(bool default_value) override; | 86 bool allowAutoplay(bool default_value) override; |
| 88 void passiveInsecureContentFound(const blink::WebURL&) override; | 87 void passiveInsecureContentFound(const blink::WebURL&) override; |
| 89 | 88 |
| 90 private: | 89 private: |
| 91 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); | 90 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); |
| 92 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, | 91 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, |
| 93 ContentSettingsInterstitialPages); | 92 ContentSettingsInterstitialPages); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 std::unordered_map<int, blink::WebContentSettingCallbacks>; | 158 std::unordered_map<int, blink::WebContentSettingCallbacks>; |
| 160 PermissionRequestMap permission_requests_; | 159 PermissionRequestMap permission_requests_; |
| 161 | 160 |
| 162 // If true, IsWhitelistedForContentSettings will always return true. | 161 // If true, IsWhitelistedForContentSettings will always return true. |
| 163 const bool should_whitelist_; | 162 const bool should_whitelist_; |
| 164 | 163 |
| 165 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 164 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 166 }; | 165 }; |
| 167 | 166 |
| 168 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 167 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |