| 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_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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #if defined(ENABLE_EXTENSIONS) | 190 #if defined(ENABLE_EXTENSIONS) |
| 191 // Gets extension by the given origin, regardless of whether the extension | 191 // Gets extension by the given origin, regardless of whether the extension |
| 192 // is active in the current process. | 192 // is active in the current process. |
| 193 const extensions::Extension* GetExtensionByOrigin( | 193 const extensions::Extension* GetExtensionByOrigin( |
| 194 const blink::WebSecurityOrigin& origin) const; | 194 const blink::WebSecurityOrigin& origin) const; |
| 195 | 195 |
| 196 // Returns true if the frame is navigating to an URL either into or out of an | 196 // Returns true if the frame is navigating to an URL either into or out of an |
| 197 // extension app's extent. | 197 // extension app's extent. |
| 198 bool CrossesExtensionExtents(blink::WebLocalFrame* frame, | 198 bool CrossesExtensionExtents(blink::WebLocalFrame* frame, |
| 199 const GURL& new_url, | 199 const GURL& new_url, |
| 200 const extensions::ExtensionSet& extensions, | |
| 201 bool is_extension_url, | 200 bool is_extension_url, |
| 202 bool is_initial_navigation); | 201 bool is_initial_navigation); |
| 203 #endif | 202 #endif |
| 204 | 203 |
| 205 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, | 204 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, |
| 206 const content::WebPluginInfo& plugin); | 205 const content::WebPluginInfo& plugin); |
| 207 | 206 |
| 208 #if !defined(DISABLE_NACL) | 207 #if !defined(DISABLE_NACL) |
| 209 // Determines if a NaCl app is allowed, and modifies params to pass the app's | 208 // Determines if a NaCl app is allowed, and modifies params to pass the app's |
| 210 // permissions to the trusted NaCl plugin. | 209 // permissions to the trusted NaCl plugin. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #if defined(ENABLE_PRINT_PREVIEW) | 244 #if defined(ENABLE_PRINT_PREVIEW) |
| 246 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 245 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
| 247 #endif | 246 #endif |
| 248 #if defined(ENABLE_PLUGINS) | 247 #if defined(ENABLE_PLUGINS) |
| 249 std::set<std::string> allowed_camera_device_origins_; | 248 std::set<std::string> allowed_camera_device_origins_; |
| 250 std::set<std::string> allowed_compositor_origins_; | 249 std::set<std::string> allowed_compositor_origins_; |
| 251 #endif | 250 #endif |
| 252 }; | 251 }; |
| 253 | 252 |
| 254 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 253 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |