| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // An empty URL is returned if the URL is not overriden. | 355 // An empty URL is returned if the URL is not overriden. |
| 356 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 356 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 357 | 357 |
| 358 // Provides parameters for initializing the global task scheduler. Default | 358 // Provides parameters for initializing the global task scheduler. Default |
| 359 // params are used if this returns nullptr. | 359 // params are used if this returns nullptr. |
| 360 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 360 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 361 GetTaskSchedulerInitParams(); | 361 GetTaskSchedulerInitParams(); |
| 362 | 362 |
| 363 // Returns true if the media pipeline can be suspended, or false otherwise. | 363 // Returns true if the media pipeline can be suspended, or false otherwise. |
| 364 virtual bool AllowMediaSuspend(); | 364 virtual bool AllowMediaSuspend(); |
| 365 |
| 366 // Returns true if this renderer can be backgrounded. |
| 367 virtual bool CanBeBackgrounded() const; |
| 365 }; | 368 }; |
| 366 | 369 |
| 367 } // namespace content | 370 } // namespace content |
| 368 | 371 |
| 369 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 372 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |