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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "content/public/renderer/content_renderer_client.h" | 16 #include "content/public/renderer/content_renderer_client.h" |
17 #include "ipc/ipc_channel_proxy.h" | 17 #include "ipc/ipc_channel_proxy.h" |
18 | 18 |
19 class ChromeExtensionsDispatcherDelegate; | 19 class ChromeExtensionsDispatcherDelegate; |
| 20 class ChromeGuestViewContainerObserver; |
20 class ChromeRenderProcessObserver; | 21 class ChromeRenderProcessObserver; |
21 #if defined(ENABLE_PRINT_PREVIEW) | 22 #if defined(ENABLE_PRINT_PREVIEW) |
22 class ChromePDFPrintClient; | 23 class ChromePDFPrintClient; |
23 #endif | 24 #endif |
24 class PrescientNetworkingDispatcher; | 25 class PrescientNetworkingDispatcher; |
25 class SearchBouncer; | 26 class SearchBouncer; |
26 #if defined(ENABLE_SPELLCHECK) | 27 #if defined(ENABLE_SPELLCHECK) |
27 class SpellCheck; | 28 class SpellCheck; |
28 class SpellCheckProvider; | 29 class SpellCheckProvider; |
29 #endif | 30 #endif |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void DeferMediaLoad(content::RenderFrame* render_frame, | 108 void DeferMediaLoad(content::RenderFrame* render_frame, |
108 const base::Closure& closure) override; | 109 const base::Closure& closure) override; |
109 bool RunIdleHandlerWhenWidgetsHidden() override; | 110 bool RunIdleHandlerWhenWidgetsHidden() override; |
110 bool AllowPopup() override; | 111 bool AllowPopup() override; |
111 bool ShouldFork(blink::WebFrame* frame, | 112 bool ShouldFork(blink::WebFrame* frame, |
112 const GURL& url, | 113 const GURL& url, |
113 const std::string& http_method, | 114 const std::string& http_method, |
114 bool is_initial_navigation, | 115 bool is_initial_navigation, |
115 bool is_server_redirect, | 116 bool is_server_redirect, |
116 bool* send_referrer) override; | 117 bool* send_referrer) override; |
117 bool ShouldForwardToGuestContainer(const IPC::Message& msg) override; | |
118 bool WillSendRequest(blink::WebFrame* frame, | 118 bool WillSendRequest(blink::WebFrame* frame, |
119 ui::PageTransition transition_type, | 119 ui::PageTransition transition_type, |
120 const GURL& url, | 120 const GURL& url, |
121 const GURL& first_party_for_cookies, | 121 const GURL& first_party_for_cookies, |
122 GURL* new_url) override; | 122 GURL* new_url) override; |
123 unsigned long long VisitedLinkHash(const char* canonical_url, | 123 unsigned long long VisitedLinkHash(const char* canonical_url, |
124 size_t length) override; | 124 size_t length) override; |
125 bool IsLinkVisited(unsigned long long link_hash) override; | 125 bool IsLinkVisited(unsigned long long link_hash) override; |
126 blink::WebPrescientNetworking* GetPrescientNetworking() override; | 126 blink::WebPrescientNetworking* GetPrescientNetworking() override; |
127 bool ShouldOverridePageVisibilityState( | 127 bool ShouldOverridePageVisibilityState( |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // permissions to the trusted NaCl plugin. | 209 // permissions to the trusted NaCl plugin. |
210 static bool IsNaClAllowed(const GURL& manifest_url, | 210 static bool IsNaClAllowed(const GURL& manifest_url, |
211 const GURL& app_url, | 211 const GURL& app_url, |
212 bool is_nacl_unrestricted, | 212 bool is_nacl_unrestricted, |
213 const extensions::Extension* extension, | 213 const extensions::Extension* extension, |
214 blink::WebPluginParams* params); | 214 blink::WebPluginParams* params); |
215 #endif | 215 #endif |
216 | 216 |
217 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 217 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
218 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; | 218 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; |
| 219 scoped_ptr<ChromeGuestViewContainerObserver> guest_view_container_observer_; |
219 | 220 |
220 // TODO(thestig): Extract into a separate file if possible. Cleanup | 221 // TODO(thestig): Extract into a separate file if possible. Cleanup |
221 // ENABLE_EXTENSIONS ifdefs in the .cc file as well. | 222 // ENABLE_EXTENSIONS ifdefs in the .cc file as well. |
222 #if defined(ENABLE_EXTENSIONS) | 223 #if defined(ENABLE_EXTENSIONS) |
223 scoped_ptr<ChromeExtensionsDispatcherDelegate> extension_dispatcher_delegate_; | 224 scoped_ptr<ChromeExtensionsDispatcherDelegate> extension_dispatcher_delegate_; |
224 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; | 225 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; |
225 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> | 226 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> |
226 permissions_policy_delegate_; | 227 permissions_policy_delegate_; |
227 #endif | 228 #endif |
228 | 229 |
(...skipping 14 matching lines...) Expand all Loading... |
243 #if defined(ENABLE_PRINT_PREVIEW) | 244 #if defined(ENABLE_PRINT_PREVIEW) |
244 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 245 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
245 #endif | 246 #endif |
246 #if defined(ENABLE_PLUGINS) | 247 #if defined(ENABLE_PLUGINS) |
247 std::set<std::string> allowed_camera_device_origins_; | 248 std::set<std::string> allowed_camera_device_origins_; |
248 std::set<std::string> allowed_compositor_origins_; | 249 std::set<std::string> allowed_compositor_origins_; |
249 #endif | 250 #endif |
250 }; | 251 }; |
251 | 252 |
252 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 253 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |