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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 class WebRTCPeerConnectionHandlerClient; | 42 class WebRTCPeerConnectionHandlerClient; |
43 class WebSpeechSynthesizer; | 43 class WebSpeechSynthesizer; |
44 class WebSpeechSynthesizerClient; | 44 class WebSpeechSynthesizerClient; |
45 class WebThemeEngine; | 45 class WebThemeEngine; |
46 class WebURLRequest; | 46 class WebURLRequest; |
47 class WebWorkerPermissionClientProxy; | 47 class WebWorkerPermissionClientProxy; |
48 struct WebPluginParams; | 48 struct WebPluginParams; |
49 struct WebURLError; | 49 struct WebURLError; |
50 } | 50 } |
51 | 51 |
52 namespace media { | |
53 struct KeySystemInfo; | |
54 } | |
55 | |
52 namespace content { | 56 namespace content { |
53 class BrowserPluginDelegate; | 57 class BrowserPluginDelegate; |
54 class DocumentState; | 58 class DocumentState; |
55 class RenderFrame; | 59 class RenderFrame; |
56 class RenderView; | 60 class RenderView; |
57 class SynchronousCompositor; | 61 class SynchronousCompositor; |
58 struct KeySystemInfo; | |
59 struct WebPluginInfo; | 62 struct WebPluginInfo; |
60 | 63 |
61 // Embedder API for participating in renderer logic. | 64 // Embedder API for participating in renderer logic. |
62 class CONTENT_EXPORT ContentRendererClient { | 65 class CONTENT_EXPORT ContentRendererClient { |
63 public: | 66 public: |
64 virtual ~ContentRendererClient() {} | 67 virtual ~ContentRendererClient() {} |
65 | 68 |
66 // Notifies us that the RenderThread has been created. | 69 // Notifies us that the RenderThread has been created. |
67 virtual void RenderThreadStarted() {} | 70 virtual void RenderThreadStarted() {} |
68 | 71 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 | 239 |
237 // Returns true if the given Pepper plugin is external (requiring special | 240 // Returns true if the given Pepper plugin is external (requiring special |
238 // startup steps). | 241 // startup steps). |
239 virtual bool IsExternalPepperPlugin(const std::string& module_name); | 242 virtual bool IsExternalPepperPlugin(const std::string& module_name); |
240 | 243 |
241 // Returns true if the page at |url| can use Pepper MediaStream APIs. | 244 // Returns true if the page at |url| can use Pepper MediaStream APIs. |
242 virtual bool AllowPepperMediaStreamAPI(const GURL& url); | 245 virtual bool AllowPepperMediaStreamAPI(const GURL& url); |
243 | 246 |
244 // Gives the embedder a chance to register the key system(s) it supports by | 247 // Gives the embedder a chance to register the key system(s) it supports by |
245 // populating |key_systems|. | 248 // populating |key_systems|. |
246 virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems); | 249 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); |
xhwang
2014/10/22 07:00:09
jam: This is the tricky part of this CL. In Conten
jam
2014/10/23 20:12:22
yep this is fine.
see other examples:
https://cod
| |
247 | 250 |
248 // Returns true if we should report a detailed message (including a stack | 251 // Returns true if we should report a detailed message (including a stack |
249 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 252 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
250 // reported source for the error; this can point to a page or a script, | 253 // reported source for the error; this can point to a page or a script, |
251 // and can be external or internal. | 254 // and can be external or internal. |
252 virtual bool ShouldReportDetailedMessageForSource( | 255 virtual bool ShouldReportDetailedMessageForSource( |
253 const base::string16& source) const; | 256 const base::string16& source) const; |
254 | 257 |
255 // Returns true if we should apply the cross-site document blocking policy to | 258 // Returns true if we should apply the cross-site document blocking policy to |
256 // this renderer process. Currently, we apply the policy only to a renderer | 259 // this renderer process. Currently, we apply the policy only to a renderer |
(...skipping 15 matching lines...) Expand all Loading... | |
272 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
273 | 276 |
274 // Returns a user agent override specific for |url|, or empty string if | 277 // Returns a user agent override specific for |url|, or empty string if |
275 // default user agent should be used. | 278 // default user agent should be used. |
276 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
277 }; | 280 }; |
278 | 281 |
279 } // namespace content | 282 } // namespace content |
280 | 283 |
281 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |