| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 blink::WebFrame* frame); | 266 blink::WebFrame* frame); |
| 267 | 267 |
| 268 // Returns true if the page at |url| can use Pepper Compositor APIs. | 268 // Returns true if the page at |url| can use Pepper Compositor APIs. |
| 269 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); | 269 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); |
| 270 | 270 |
| 271 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. | 271 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. |
| 272 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); | 272 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); |
| 273 | 273 |
| 274 // Returns true if dev channel APIs are available for plugins. | 274 // Returns true if dev channel APIs are available for plugins. |
| 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 276 |
| 277 // Returns a user agent override specific for |url|, or empty string if |
| 278 // default user agent should be used. |
| 279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 276 }; | 280 }; |
| 277 | 281 |
| 278 } // namespace content | 282 } // namespace content |
| 279 | 283 |
| 280 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |