| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // RenderFrameObserver implementation. | 94 // RenderFrameObserver implementation. |
| 95 bool OnMessageReceived(const IPC::Message& message) override; | 95 bool OnMessageReceived(const IPC::Message& message) override; |
| 96 void DidCommitProvisionalLoad(bool is_new_navigation, | 96 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 97 bool is_same_page_navigation) override; | 97 bool is_same_page_navigation) override; |
| 98 void OnDestruct() override; | 98 void OnDestruct() override; |
| 99 | 99 |
| 100 // Message handlers. | 100 // Message handlers. |
| 101 void OnLoadBlockedPlugins(const std::string& identifier); | 101 void OnLoadBlockedPlugins(const std::string& identifier); |
| 102 void OnSetAsInterstitial(); | 102 void OnSetAsInterstitial(); |
| 103 void OnSetAllowDisplayingInsecureContent(bool allow); | |
| 104 void OnSetAllowRunningInsecureContent(bool allow); | 103 void OnSetAllowRunningInsecureContent(bool allow); |
| 105 void OnReloadFrame(); | 104 void OnReloadFrame(); |
| 106 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); | 105 void OnRequestFileSystemAccessAsyncResponse(int request_id, bool allowed); |
| 107 | 106 |
| 108 // Resets the |content_blocked_| array. | 107 // Resets the |content_blocked_| array. |
| 109 void ClearBlockedContentSettings(); | 108 void ClearBlockedContentSettings(); |
| 110 | 109 |
| 111 // Whether the observed RenderFrame is for a platform app. | 110 // Whether the observed RenderFrame is for a platform app. |
| 112 bool IsPlatformApp(); | 111 bool IsPlatformApp(); |
| 113 | 112 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; | 157 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; |
| 159 PermissionRequestMap permission_requests_; | 158 PermissionRequestMap permission_requests_; |
| 160 | 159 |
| 161 // If true, IsWhitelistedForContentSettings will always return true. | 160 // If true, IsWhitelistedForContentSettings will always return true. |
| 162 const bool should_whitelist_; | 161 const bool should_whitelist_; |
| 163 | 162 |
| 164 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 163 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 165 }; | 164 }; |
| 166 | 165 |
| 167 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 166 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |