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

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

Issue 1293673002: Create thread-safe RendererExtensionRegistry from ExtensionSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.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_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 #if defined(ENABLE_EXTENSIONS) 193 #if defined(ENABLE_EXTENSIONS)
194 // Gets extension by the given origin, regardless of whether the extension 194 // Gets extension by the given origin, regardless of whether the extension
195 // is active in the current process. 195 // is active in the current process.
196 const extensions::Extension* GetExtensionByOrigin( 196 const extensions::Extension* GetExtensionByOrigin(
197 const blink::WebSecurityOrigin& origin) const; 197 const blink::WebSecurityOrigin& origin) const;
198 198
199 // Returns true if the frame is navigating to an URL either into or out of an 199 // Returns true if the frame is navigating to an URL either into or out of an
200 // extension app's extent. 200 // extension app's extent.
201 bool CrossesExtensionExtents(blink::WebLocalFrame* frame, 201 bool CrossesExtensionExtents(blink::WebLocalFrame* frame,
202 const GURL& new_url, 202 const GURL& new_url,
203 const extensions::ExtensionSet& extensions,
204 bool is_extension_url, 203 bool is_extension_url,
205 bool is_initial_navigation); 204 bool is_initial_navigation);
206 #endif 205 #endif
207 206
208 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, 207 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type,
209 const content::WebPluginInfo& plugin); 208 const content::WebPluginInfo& plugin);
210 209
211 #if !defined(DISABLE_NACL) 210 #if !defined(DISABLE_NACL)
212 // Determines if a NaCl app is allowed, and modifies params to pass the app's 211 // Determines if a NaCl app is allowed, and modifies params to pass the app's
213 // permissions to the trusted NaCl plugin. 212 // permissions to the trusted NaCl plugin.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 #if defined(ENABLE_PRINT_PREVIEW) 247 #if defined(ENABLE_PRINT_PREVIEW)
249 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; 248 scoped_ptr<ChromePDFPrintClient> pdf_print_client_;
250 #endif 249 #endif
251 #if defined(ENABLE_PLUGINS) 250 #if defined(ENABLE_PLUGINS)
252 std::set<std::string> allowed_camera_device_origins_; 251 std::set<std::string> allowed_camera_device_origins_;
253 std::set<std::string> allowed_compositor_origins_; 252 std::set<std::string> allowed_compositor_origins_;
254 #endif 253 #endif
255 }; 254 };
256 255
257 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 256 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698