| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 private: | 89 private: |
| 90 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); | 90 FRIEND_TEST_ALL_PREFIXES(ContentSettingsObserverTest, WhitelistedSchemes); |
| 91 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, | 91 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, |
| 92 ContentSettingsInterstitialPages); | 92 ContentSettingsInterstitialPages); |
| 93 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, PluginsTemporarilyAllowed); | 93 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, PluginsTemporarilyAllowed); |
| 94 | 94 |
| 95 // RenderFrameObserver implementation. | 95 // RenderFrameObserver implementation. |
| 96 bool OnMessageReceived(const IPC::Message& message) override; | 96 bool OnMessageReceived(const IPC::Message& message) override; |
| 97 void DidCommitProvisionalLoad(bool is_new_navigation, | 97 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 98 bool is_same_page_navigation) override; | 98 bool is_same_page_navigation) override; |
| 99 void OnDestruct() override; |
| 99 | 100 |
| 100 // Message handlers. | 101 // Message handlers. |
| 101 void OnLoadBlockedPlugins(const std::string& identifier); | 102 void OnLoadBlockedPlugins(const std::string& identifier); |
| 102 void OnSetAsInterstitial(); | 103 void OnSetAsInterstitial(); |
| 103 void OnSetAllowDisplayingInsecureContent(bool allow); | 104 void OnSetAllowDisplayingInsecureContent(bool allow); |
| 104 void OnSetAllowRunningInsecureContent(bool allow); | 105 void OnSetAllowRunningInsecureContent(bool allow); |
| 105 void OnReloadFrame(); | 106 void OnReloadFrame(); |
| 106 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); | 107 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); |
| 107 | 108 |
| 108 // Resets the |content_blocked_| array. | 109 // Resets the |content_blocked_| array. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; | 159 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; |
| 159 PermissionRequestMap permission_requests_; | 160 PermissionRequestMap permission_requests_; |
| 160 | 161 |
| 161 // If true, IsWhitelistedForContentSettings will always return true. | 162 // If true, IsWhitelistedForContentSettings will always return true. |
| 162 const bool should_whitelist_; | 163 const bool should_whitelist_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 165 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 168 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |