| 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_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Retrieves the list of AudioOutputController objects associated | 280 // Retrieves the list of AudioOutputController objects associated |
| 281 // with this object and passes it to the callback you specify, on | 281 // with this object and passes it to the callback you specify, on |
| 282 // the same thread on which you called the method. | 282 // the same thread on which you called the method. |
| 283 typedef std::list<scoped_refptr<media::AudioOutputController>> | 283 typedef std::list<scoped_refptr<media::AudioOutputController>> |
| 284 AudioOutputControllerList; | 284 AudioOutputControllerList; |
| 285 typedef base::Callback<void(const AudioOutputControllerList&)> | 285 typedef base::Callback<void(const AudioOutputControllerList&)> |
| 286 GetAudioOutputControllersCallback; | 286 GetAudioOutputControllersCallback; |
| 287 virtual void GetAudioOutputControllers( | 287 virtual void GetAudioOutputControllers( |
| 288 const GetAudioOutputControllersCallback& callback) const = 0; | 288 const GetAudioOutputControllersCallback& callback) const = 0; |
| 289 | 289 |
| 290 #if defined(ENABLE_BROWSER_CDMS) | |
| 291 // Returns the CDM instance associated with |render_frame_id| and |cdm_id|, | |
| 292 // or nullptr if not found. | |
| 293 virtual scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | |
| 294 int cdm_id) const = 0; | |
| 295 #endif | |
| 296 | |
| 297 // Returns true if this process currently has backgrounded priority. | 290 // Returns true if this process currently has backgrounded priority. |
| 298 virtual bool IsProcessBackgrounded() const = 0; | 291 virtual bool IsProcessBackgrounded() const = 0; |
| 299 | 292 |
| 300 // Called when the existence of the other renderer process which is connected | 293 // Called when the existence of the other renderer process which is connected |
| 301 // to the Worker in this renderer process has changed. | 294 // to the Worker in this renderer process has changed. |
| 302 virtual void IncrementServiceWorkerRefCount() = 0; | 295 virtual void IncrementServiceWorkerRefCount() = 0; |
| 303 virtual void DecrementServiceWorkerRefCount() = 0; | 296 virtual void DecrementServiceWorkerRefCount() = 0; |
| 304 virtual void IncrementSharedWorkerRefCount() = 0; | 297 virtual void IncrementSharedWorkerRefCount() = 0; |
| 305 virtual void DecrementSharedWorkerRefCount() = 0; | 298 virtual void DecrementSharedWorkerRefCount() = 0; |
| 306 | 299 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 static void SetMaxRendererProcessCount(size_t count); | 365 static void SetMaxRendererProcessCount(size_t count); |
| 373 | 366 |
| 374 // Returns the current maximum number of renderer process hosts kept by the | 367 // Returns the current maximum number of renderer process hosts kept by the |
| 375 // content module. | 368 // content module. |
| 376 static size_t GetMaxRendererProcessCount(); | 369 static size_t GetMaxRendererProcessCount(); |
| 377 }; | 370 }; |
| 378 | 371 |
| 379 } // namespace content. | 372 } // namespace content. |
| 380 | 373 |
| 381 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 374 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |