| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #if defined(ENABLE_PLUGINS) | 11 #if defined(ENABLE_PLUGINS) |
| 12 #include <set> | 12 #include <set> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 18 #include "content/public/renderer/content_renderer_client.h" | 18 #include "content/public/renderer/content_renderer_client.h" |
| 19 | 19 |
| 20 class ChromeRenderProcessObserver; | 20 class ChromeRenderProcessObserver; |
| 21 class ExtensionSet; | |
| 22 class PrescientNetworkingDispatcher; | 21 class PrescientNetworkingDispatcher; |
| 23 class RendererNetPredictor; | 22 class RendererNetPredictor; |
| 24 class SearchBouncer; | 23 class SearchBouncer; |
| 25 #if defined(ENABLE_SPELLCHECK) | 24 #if defined(ENABLE_SPELLCHECK) |
| 26 class SpellCheck; | 25 class SpellCheck; |
| 27 class SpellCheckProvider; | 26 class SpellCheckProvider; |
| 28 #endif | 27 #endif |
| 29 | 28 |
| 30 struct ChromeViewHostMsg_GetPluginInfo_Output; | 29 struct ChromeViewHostMsg_GetPluginInfo_Output; |
| 31 | 30 |
| 32 namespace content { | 31 namespace content { |
| 33 struct WebPluginInfo; | 32 struct WebPluginInfo; |
| 34 } | 33 } |
| 35 | 34 |
| 36 namespace extensions { | 35 namespace extensions { |
| 37 class Dispatcher; | 36 class Dispatcher; |
| 38 class Extension; | 37 class Extension; |
| 38 class ExtensionSet; |
| 39 class RendererPermissionsPolicyDelegate; | 39 class RendererPermissionsPolicyDelegate; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace prerender { | 42 namespace prerender { |
| 43 class PrerenderDispatcher; | 43 class PrerenderDispatcher; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace safe_browsing { | 46 namespace safe_browsing { |
| 47 class PhishingClassifierFilter; | 47 class PhishingClassifierFilter; |
| 48 } | 48 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // Gets extension by the given origin, regardless of whether the extension | 182 // Gets extension by the given origin, regardless of whether the extension |
| 183 // is active in the current process. | 183 // is active in the current process. |
| 184 const extensions::Extension* GetExtensionByOrigin( | 184 const extensions::Extension* GetExtensionByOrigin( |
| 185 const blink::WebSecurityOrigin& origin) const; | 185 const blink::WebSecurityOrigin& origin) const; |
| 186 | 186 |
| 187 // Returns true if the frame is navigating to an URL either into or out of an | 187 // Returns true if the frame is navigating to an URL either into or out of an |
| 188 // extension app's extent. | 188 // extension app's extent. |
| 189 bool CrossesExtensionExtents(blink::WebFrame* frame, | 189 bool CrossesExtensionExtents(blink::WebFrame* frame, |
| 190 const GURL& new_url, | 190 const GURL& new_url, |
| 191 const ExtensionSet& extensions, | 191 const extensions::ExtensionSet& extensions, |
| 192 bool is_extension_url, | 192 bool is_extension_url, |
| 193 bool is_initial_navigation); | 193 bool is_initial_navigation); |
| 194 | 194 |
| 195 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, | 195 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, |
| 196 const content::WebPluginInfo& plugin); | 196 const content::WebPluginInfo& plugin); |
| 197 | 197 |
| 198 // Determines if a NaCl app is allowed, and modifies params to pass the app's | 198 // Determines if a NaCl app is allowed, and modifies params to pass the app's |
| 199 // permissions to the trusted NaCl plugin. | 199 // permissions to the trusted NaCl plugin. |
| 200 static bool IsNaClAllowed(const GURL& manifest_url, | 200 static bool IsNaClAllowed(const GURL& manifest_url, |
| 201 const GURL& app_url, | 201 const GURL& app_url, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 215 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 215 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
| 216 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 216 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 217 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 217 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
| 218 #if defined(ENABLE_WEBRTC) | 218 #if defined(ENABLE_WEBRTC) |
| 219 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 219 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
| 220 #endif | 220 #endif |
| 221 scoped_ptr<SearchBouncer> search_bouncer_; | 221 scoped_ptr<SearchBouncer> search_bouncer_; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 224 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |