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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 | 284 |
| 285 // Returns true if the page at |url| can use Pepper Compositor APIs. | 285 // Returns true if the page at |url| can use Pepper Compositor APIs. |
| 286 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); | 286 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url); |
| 287 | 287 |
| 288 // Returns true if dev channel APIs are available for plugins. | 288 // Returns true if dev channel APIs are available for plugins. |
| 289 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 289 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 290 | 290 |
| 291 // Returns a user agent override specific for |url|, or empty string if | 291 // Returns a user agent override specific for |url|, or empty string if |
| 292 // default user agent should be used. | 292 // default user agent should be used. |
| 293 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 293 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 294 | |
| 295 // Allows renderer to record metrics to RAPPOR. | |
| 296 virtual void RecordRappor( | |
| 297 const std::string& metric, const std::string& sample); | |
|
jam
2015/04/02 16:24:14
nit: for void methods, just define this inline wit
kojii
2015/04/03 06:50:53
Done.
| |
| 294 }; | 298 }; |
| 295 | 299 |
| 296 } // namespace content | 300 } // namespace content |
| 297 | 301 |
| 298 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 302 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |