| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 bool allowScriptFromSource(bool enabled_per_settings, | 73 bool allowScriptFromSource(bool enabled_per_settings, |
| 74 const blink::WebURL& script_url) override; | 74 const blink::WebURL& script_url) override; |
| 75 bool allowStorage(bool local) override; | 75 bool allowStorage(bool local) override; |
| 76 bool allowReadFromClipboard(bool default_value) override; | 76 bool allowReadFromClipboard(bool default_value) override; |
| 77 bool allowWriteToClipboard(bool default_value) override; | 77 bool allowWriteToClipboard(bool default_value) override; |
| 78 bool allowMutationEvents(bool default_value) override; | 78 bool allowMutationEvents(bool default_value) override; |
| 79 void didNotAllowPlugins() override; | 79 void didNotAllowPlugins() override; |
| 80 void didNotAllowScript() override; | 80 void didNotAllowScript() override; |
| 81 void didUseKeygen() override; | 81 void didUseKeygen() override; |
| 82 bool allowDisplayingInsecureContent(bool allowed_per_settings, | 82 bool allowDisplayingInsecureContent(bool allowed_per_settings, |
| 83 const blink::WebSecurityOrigin& context, | |
| 84 const blink::WebURL& url) override; | 83 const blink::WebURL& url) override; |
| 85 bool allowRunningInsecureContent(bool allowed_per_settings, | 84 bool allowRunningInsecureContent(bool allowed_per_settings, |
| 86 const blink::WebSecurityOrigin& context, | 85 const blink::WebSecurityOrigin& context, |
| 87 const blink::WebURL& url) override; | 86 const blink::WebURL& url) override; |
| 88 | 87 |
| 89 // This is used for cases when the NPAPI plugins malfunction if used. | 88 // This is used for cases when the NPAPI plugins malfunction if used. |
| 90 bool AreNPAPIPluginsBlocked() const; | 89 bool AreNPAPIPluginsBlocked() const; |
| 91 | 90 |
| 92 private: | 91 private: |
| 93 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); | 92 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; | 162 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; |
| 164 PermissionRequestMap permission_requests_; | 163 PermissionRequestMap permission_requests_; |
| 165 | 164 |
| 166 // If true, IsWhitelistedForContentSettings will always return true. | 165 // If true, IsWhitelistedForContentSettings will always return true. |
| 167 const bool should_whitelist_; | 166 const bool should_whitelist_; |
| 168 | 167 |
| 169 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 168 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 171 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |