Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: chrome/renderer/content_settings_observer.h

Issue 394403002: Move weburlresponse_extradata_impl.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698