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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 namespace webkit { | 42 namespace webkit { |
43 struct WebPluginInfo; | 43 struct WebPluginInfo; |
44 } | 44 } |
45 | 45 |
46 namespace WebKit { | 46 namespace WebKit { |
47 class WebSecurityOrigin; | 47 class WebSecurityOrigin; |
48 } | 48 } |
49 | 49 |
50 namespace chrome { | 50 namespace chrome { |
51 | 51 |
52 #if defined(ENABLE_WEBRTC) | |
53 class WebRtcLoggingMessageFilter; | |
54 #endif | |
55 | |
52 class ChromeContentRendererClient : public content::ContentRendererClient { | 56 class ChromeContentRendererClient : public content::ContentRendererClient { |
53 public: | 57 public: |
54 ChromeContentRendererClient(); | 58 ChromeContentRendererClient(); |
55 virtual ~ChromeContentRendererClient(); | 59 virtual ~ChromeContentRendererClient(); |
56 | 60 |
57 virtual void RenderThreadStarted() OVERRIDE; | 61 virtual void RenderThreadStarted() OVERRIDE; |
58 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; | 62 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; |
59 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; | 63 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; |
60 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; | 64 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; |
61 virtual SkBitmap* GetSadWebViewBitmap() OVERRIDE; | 65 virtual SkBitmap* GetSadWebViewBitmap() OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 virtual bool HandleSetCookieRequest(content::RenderView* sender, | 120 virtual bool HandleSetCookieRequest(content::RenderView* sender, |
117 const GURL& url, | 121 const GURL& url, |
118 const GURL& first_party_for_cookies, | 122 const GURL& first_party_for_cookies, |
119 const std::string& value) OVERRIDE; | 123 const std::string& value) OVERRIDE; |
120 virtual bool AllowBrowserPlugin( | 124 virtual bool AllowBrowserPlugin( |
121 WebKit::WebPluginContainer* container) const OVERRIDE; | 125 WebKit::WebPluginContainer* container) const OVERRIDE; |
122 virtual void RegisterPPAPIInterfaceFactories( | 126 virtual void RegisterPPAPIInterfaceFactories( |
123 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; | 127 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; |
124 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 128 virtual WebKit::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
125 WebKit::WebSpeechSynthesizerClient* client) OVERRIDE; | 129 WebKit::WebSpeechSynthesizerClient* client) OVERRIDE; |
130 #if defined(ENABLE_WEBRTC) | |
131 virtual void InitWebRtcLogging(const std::string& app_session_id) OVERRIDE; | |
Jói
2013/05/24 20:47:29
As discussed, if this can be removed (both here an
Henrik Grunell
2013/05/27 16:23:06
Done.
| |
132 #endif | |
126 | 133 |
127 // For testing. | 134 // For testing. |
128 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); | 135 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); |
129 | 136 |
130 // Sets a new |spellcheck|. Used for low-mem restart and testing only. | 137 // Sets a new |spellcheck|. Used for low-mem restart and testing only. |
131 // Takes ownership of |spellcheck|. | 138 // Takes ownership of |spellcheck|. |
132 void SetSpellcheck(SpellCheck* spellcheck); | 139 void SetSpellcheck(SpellCheck* spellcheck); |
133 | 140 |
134 // Called in low-memory conditions to dump the memory used by the spellchecker | 141 // Called in low-memory conditions to dump the memory used by the spellchecker |
135 // and start over. | 142 // and start over. |
(...skipping 28 matching lines...) Expand all Loading... | |
164 bool is_initial_navigation); | 171 bool is_initial_navigation); |
165 | 172 |
166 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, | 173 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, |
167 const webkit::WebPluginInfo& plugin); | 174 const webkit::WebPluginInfo& plugin); |
168 static bool IsNaClAllowed(const GURL& manifest_url, | 175 static bool IsNaClAllowed(const GURL& manifest_url, |
169 const GURL& app_url, | 176 const GURL& app_url, |
170 bool is_nacl_unrestricted, | 177 bool is_nacl_unrestricted, |
171 const extensions::Extension* extension, | 178 const extensions::Extension* extension, |
172 WebKit::WebPluginParams* params); | 179 WebKit::WebPluginParams* params); |
173 | 180 |
181 #if defined(ENABLE_WEBRTC) | |
182 void DoInitWebRtcLogging(WebRtcLoggingMessageFilter* filter, | |
183 const std::string& app_session_id); | |
184 #endif | |
185 | |
174 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 186 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
175 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; | 187 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; |
176 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> | 188 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> |
177 permissions_policy_delegate_; | 189 permissions_policy_delegate_; |
178 scoped_ptr<RendererNetPredictor> net_predictor_; | 190 scoped_ptr<RendererNetPredictor> net_predictor_; |
179 scoped_ptr<SpellCheck> spellcheck_; | 191 scoped_ptr<SpellCheck> spellcheck_; |
180 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 192 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
181 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 193 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
182 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 194 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
195 #if defined(ENABLE_WEBRTC) | |
196 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | |
197 #endif | |
183 }; | 198 }; |
184 | 199 |
185 } // namespace chrome | 200 } // namespace chrome |
186 | 201 |
187 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 202 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |