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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 const GURL& url) {} | 341 const GURL& url) {} |
| 342 | 342 |
| 343 // Whether this renderer should enforce preferences related to the WebRTC | 343 // Whether this renderer should enforce preferences related to the WebRTC |
| 344 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 344 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
| 345 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 345 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
| 346 | 346 |
| 347 // Notifies that a worker context has been created. This function is called | 347 // Notifies that a worker context has been created. This function is called |
| 348 // from the worker thread. | 348 // from the worker thread. |
| 349 virtual void DidInitializeWorkerContextOnWorkerThread( | 349 virtual void DidInitializeWorkerContextOnWorkerThread( |
| 350 v8::Local<v8::Context> context) {} | 350 v8::Local<v8::Context> context) {} |
| 351 | |
| 352 // Whether this renderer allows media players to suspend when idle. | |
| 353 virtual bool AllowMediaIdleSuspend(); | |
|
alokp
2016/05/17 15:13:38
IMHO this API does not belong here. Since this is
| |
| 351 }; | 354 }; |
| 352 | 355 |
| 353 } // namespace content | 356 } // namespace content |
| 354 | 357 |
| 355 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 358 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |