| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace media { | 55 namespace media { |
| 56 class RendererFactory; | 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 ManifestParser; |
| 63 class RenderFrame; | 64 class RenderFrame; |
| 64 class RenderView; | 65 class RenderView; |
| 65 class SynchronousCompositor; | 66 class SynchronousCompositor; |
| 66 struct WebPluginInfo; | 67 struct WebPluginInfo; |
| 67 | 68 |
| 68 // Embedder API for participating in renderer logic. | 69 // Embedder API for participating in renderer logic. |
| 69 class CONTENT_EXPORT ContentRendererClient { | 70 class CONTENT_EXPORT ContentRendererClient { |
| 70 public: | 71 public: |
| 71 virtual ~ContentRendererClient() {} | 72 virtual ~ContentRendererClient() {} |
| 72 | 73 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 286 |
| 286 // Returns true if the page at |url| can use Pepper Compositor APIs. | 287 // Returns true if the page at |url| can use Pepper Compositor APIs. |
| 287 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); | 288 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); |
| 288 | 289 |
| 289 // Returns true if dev channel APIs are available for plugins. | 290 // Returns true if dev channel APIs are available for plugins. |
| 290 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 291 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 291 | 292 |
| 292 // Returns a user agent override specific for |url|, or empty string if | 293 // Returns a user agent override specific for |url|, or empty string if |
| 293 // default user agent should be used. | 294 // default user agent should be used. |
| 294 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 295 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 296 |
| 297 // Returns whether the default ManifestParser should be overridden. |
| 298 // If returns |true|, |*parser| should be a valid pointer owned by the caller. |
| 299 // Otherwise, |parser| must be null. |
| 300 virtual bool OverrideManifestParser(content::ManifestParser** parser); |
| 295 }; | 301 }; |
| 296 | 302 |
| 297 } // namespace content | 303 } // namespace content |
| 298 | 304 |
| 299 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 305 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |