| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Resets the |content_blocked_| array. | 104 // Resets the |content_blocked_| array. |
| 105 void ClearBlockedContentSettings(); | 105 void ClearBlockedContentSettings(); |
| 106 | 106 |
| 107 // If |origin| corresponds to an installed extension, returns that extension. | 107 // If |origin| corresponds to an installed extension, returns that extension. |
| 108 // Otherwise returns NULL. | 108 // Otherwise returns NULL. |
| 109 const extensions::Extension* GetExtension( | 109 const extensions::Extension* GetExtension( |
| 110 const blink::WebSecurityOrigin& origin) const; | 110 const blink::WebSecurityOrigin& origin) const; |
| 111 | 111 |
| 112 // Helpers. | 112 // Helpers. |
| 113 // True if |frame| contains content that is white-listed for content settings. | 113 // True if |frame| contains content that is white-listed for content settings. |
| 114 static bool IsWhitelistedForContentSettings(blink::WebFrame* frame); | 114 static bool IsWhitelistedForContentSettings(content::RenderFrame* frame); |
| 115 static bool IsWhitelistedForContentSettings( | 115 static bool IsWhitelistedForContentSettings( |
| 116 const blink::WebSecurityOrigin& origin, | 116 const blink::WebSecurityOrigin& origin, |
| 117 const GURL& document_url); | 117 const GURL& document_url); |
| 118 | 118 |
| 119 // Owned by ChromeContentRendererClient and outlive us. | 119 // Owned by ChromeContentRendererClient and outlive us. |
| 120 extensions::Dispatcher* extension_dispatcher_; | 120 extensions::Dispatcher* extension_dispatcher_; |
| 121 | 121 |
| 122 // Insecure content may be permitted for the duration of this render view. | 122 // Insecure content may be permitted for the duration of this render view. |
| 123 bool allow_displaying_insecure_content_; | 123 bool allow_displaying_insecure_content_; |
| 124 bool allow_running_insecure_content_; | 124 bool allow_running_insecure_content_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 144 bool npapi_plugins_blocked_; | 144 bool npapi_plugins_blocked_; |
| 145 | 145 |
| 146 int current_request_id_; | 146 int current_request_id_; |
| 147 typedef std::map<int, blink::WebPermissionCallbacks> PermissionRequestMap; | 147 typedef std::map<int, blink::WebPermissionCallbacks> PermissionRequestMap; |
| 148 PermissionRequestMap permission_requests_; | 148 PermissionRequestMap permission_requests_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 150 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 153 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
| OLD | NEW |