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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class WebSpeechSynthesizer; | 46 class WebSpeechSynthesizer; |
47 class WebSpeechSynthesizerClient; | 47 class WebSpeechSynthesizerClient; |
48 class WebThemeEngine; | 48 class WebThemeEngine; |
49 class WebURLRequest; | 49 class WebURLRequest; |
50 class WebWorkerPermissionClientProxy; | 50 class WebWorkerPermissionClientProxy; |
51 struct WebPluginParams; | 51 struct WebPluginParams; |
52 struct WebURLError; | 52 struct WebURLError; |
53 } | 53 } |
54 | 54 |
55 namespace media { | 55 namespace media { |
56 class Renderer; | 56 class RendererFactory; |
57 struct KeySystemInfo; | 57 struct KeySystemInfo; |
58 } | 58 } |
59 | 59 |
60 namespace content { | 60 namespace content { |
61 class BrowserPluginDelegate; | 61 class BrowserPluginDelegate; |
62 class DocumentState; | 62 class DocumentState; |
63 class RenderFrame; | 63 class RenderFrame; |
64 class RenderView; | 64 class RenderView; |
65 class SynchronousCompositor; | 65 class SynchronousCompositor; |
66 struct WebPluginInfo; | 66 struct WebPluginInfo; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 virtual const void* CreatePPAPIInterface( | 250 virtual const void* CreatePPAPIInterface( |
251 const std::string& interface_name); | 251 const std::string& interface_name); |
252 | 252 |
253 // Returns true if the given Pepper plugin is external (requiring special | 253 // Returns true if the given Pepper plugin is external (requiring special |
254 // startup steps). | 254 // startup steps). |
255 virtual bool IsExternalPepperPlugin(const std::string& module_name); | 255 virtual bool IsExternalPepperPlugin(const std::string& module_name); |
256 | 256 |
257 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 257 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
258 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 258 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
259 | 259 |
260 // Allows an embedder to create a media::Renderer. The caller owns the | 260 // Allows an embedder to provide a media::RendererFactory. |
261 // returned renderer. | 261 virtual scoped_ptr<media::RendererFactory> CreateMediaRendererFactory( |
262 virtual scoped_ptr<media::Renderer> CreateMediaRenderer( | 262 RenderFrame* render_frame); |
263 RenderFrame* render_frame, | |
264 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); | |
265 | 263 |
266 // Gives the embedder a chance to register the key system(s) it supports by | 264 // Gives the embedder a chance to register the key system(s) it supports by |
267 // populating |key_systems|. | 265 // populating |key_systems|. |
268 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); | 266 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); |
269 | 267 |
270 // Returns true if we should report a detailed message (including a stack | 268 // Returns true if we should report a detailed message (including a stack |
271 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 269 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
272 // reported source for the error; this can point to a page or a script, | 270 // reported source for the error; this can point to a page or a script, |
273 // and can be external or internal. | 271 // and can be external or internal. |
274 virtual bool ShouldReportDetailedMessageForSource( | 272 virtual bool ShouldReportDetailedMessageForSource( |
(...skipping 19 matching lines...) Expand all Loading... |
294 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 292 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
295 | 293 |
296 // Returns a user agent override specific for |url|, or empty string if | 294 // Returns a user agent override specific for |url|, or empty string if |
297 // default user agent should be used. | 295 // default user agent should be used. |
298 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 296 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
299 }; | 297 }; |
300 | 298 |
301 } // namespace content | 299 } // namespace content |
302 | 300 |
303 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 301 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |