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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| 7 | 7 |
| 8 #include "media/base/media_export.h" | 8 #include "media/base/media_export.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 class MediaPlayerBridge; | 12 class MediaPlayerBridge; |
| 13 class MediaResourceGetter; | |
| 13 | 14 |
| 14 // This class is responsible for managing active MediaPlayerBridge objects. | 15 // This class is responsible for managing active MediaPlayerBridge objects. |
| 15 // It is implemented by webkit_media::MediaPlayerBridgeManagerImpl and | 16 // It is implemented by content::MediaPlayerManagerImpl. |
|
scherkus (not reviewing)
2013/04/30 05:05:49
update docs? (should it still mention MediaPlayerB
qinmin
2013/04/30 16:38:02
will update docs after MediaPlayerAndroid is added
| |
| 16 // content::MediaPlayerManagerAndroid. | 17 class MEDIA_EXPORT MediaPlayerManager { |
| 17 class MEDIA_EXPORT MediaPlayerBridgeManager { | |
| 18 public: | 18 public: |
| 19 virtual ~MediaPlayerBridgeManager(); | 19 virtual ~MediaPlayerManager(); |
| 20 | 20 |
| 21 // Called by a MediaPlayerBridge object when it is going to decode | 21 // Called by a MediaPlayerBridge object when it is going to decode |
| 22 // media streams. This helps the manager object maintain an array | 22 // media streams. This helps the manager object maintain an array |
| 23 // of active MediaPlayerBridge objects and release the resources | 23 // of active MediaPlayerBridge objects and release the resources |
| 24 // when needed. | 24 // when needed. |
| 25 virtual void RequestMediaResources(MediaPlayerBridge* player) = 0; | 25 virtual void RequestMediaResources(MediaPlayerBridge* player) = 0; |
| 26 | 26 |
| 27 // Called when a MediaPlayerBridge object releases all its decoding | 27 // Called when a MediaPlayerBridge object releases all its decoding |
| 28 // resources. | 28 // resources. |
| 29 virtual void ReleaseMediaResources(MediaPlayerBridge* player) = 0; | 29 virtual void ReleaseMediaResources(MediaPlayerBridge* player) = 0; |
| 30 | |
| 31 // Return a pointer to the MediaResourceGetter object. | |
| 32 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; | |
| 30 }; | 33 }; |
| 31 | 34 |
| 32 } // namespace media | 35 } // namespace media |
| 33 | 36 |
| 34 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_ | 37 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
| OLD | NEW |