Chromium Code Reviews| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 | 54 |
| 55 namespace media { | 55 namespace media { |
| 56 class MediaLog; | 56 class MediaLog; |
| 57 class RendererFactory; | 57 class RendererFactory; |
| 58 struct KeySystemInfo; | 58 struct KeySystemInfo; |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace content { | 61 namespace content { |
| 62 class BrowserPluginDelegate; | 62 class BrowserPluginDelegate; |
| 63 class DocumentState; | 63 class DocumentState; |
| 64 class ManifestParser; | |
| 64 class RenderFrame; | 65 class RenderFrame; |
| 65 class RenderView; | 66 class RenderView; |
| 66 class SynchronousCompositor; | 67 class SynchronousCompositor; |
| 67 struct WebPluginInfo; | 68 struct WebPluginInfo; |
| 68 | 69 |
| 69 // Embedder API for participating in renderer logic. | 70 // Embedder API for participating in renderer logic. |
| 70 class CONTENT_EXPORT ContentRendererClient { | 71 class CONTENT_EXPORT ContentRendererClient { |
| 71 public: | 72 public: |
| 72 virtual ~ContentRendererClient() {} | 73 virtual ~ContentRendererClient() {} |
| 73 | 74 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 | 288 |
| 288 // Returns true if the page at |url| can use Pepper Compositor APIs. | 289 // Returns true if the page at |url| can use Pepper Compositor APIs. |
| 289 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); | 290 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); |
| 290 | 291 |
| 291 // Returns true if dev channel APIs are available for plugins. | 292 // Returns true if dev channel APIs are available for plugins. |
| 292 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 293 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 293 | 294 |
| 294 // Returns a user agent override specific for |url|, or empty string if | 295 // Returns a user agent override specific for |url|, or empty string if |
| 295 // default user agent should be used. | 296 // default user agent should be used. |
| 296 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 297 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 298 | |
| 299 // TODO: | |
| 300 virtual bool ParseManifestProperty(const std::string& key, | |
| 301 const base::Value& value | |
| 302 /* TODO: errors */); | |
|
Avi (use Gerrit)
2015/02/23 17:30:25
The ContentRendererClient is a singleton, and thus
| |
| 297 }; | 303 }; |
| 298 | 304 |
| 299 } // namespace content | 305 } // namespace content |
| 300 | 306 |
| 301 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 307 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |