Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: media/base/android/media_player_bridge_manager.h

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/android/media_player_bridge.h ('k') | net/android/net_jni_registrar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BRIDGE_MANAGER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_
7 7
8 #include "media/base/media_export.h"
9
8 namespace media { 10 namespace media {
9 11
10 class MediaPlayerBridge; 12 class MediaPlayerBridge;
11 13
12 // This class is responsible for managing active MediaPlayerBridge objects. 14 // This class is responsible for managing active MediaPlayerBridge objects.
13 // It is implemented by webkit_media::MediaPlayerBridgeManagerImpl and 15 // It is implemented by webkit_media::MediaPlayerBridgeManagerImpl and
14 // content::MediaPlayerManagerAndroid. 16 // content::MediaPlayerManagerAndroid.
15 class MediaPlayerBridgeManager { 17 class MEDIA_EXPORT MediaPlayerBridgeManager {
16 public: 18 public:
17 virtual ~MediaPlayerBridgeManager(); 19 virtual ~MediaPlayerBridgeManager();
18 20
19 // Called by a MediaPlayerBridge object when it is going to decode 21 // Called by a MediaPlayerBridge object when it is going to decode
20 // media streams. This helps the manager object maintain an array 22 // media streams. This helps the manager object maintain an array
21 // of active MediaPlayerBridge objects and release the resources 23 // of active MediaPlayerBridge objects and release the resources
22 // when needed. 24 // when needed.
23 virtual void RequestMediaResources(MediaPlayerBridge* player) = 0; 25 virtual void RequestMediaResources(MediaPlayerBridge* player) = 0;
24 26
25 // Called when a MediaPlayerBridge object releases all its decoding 27 // Called when a MediaPlayerBridge object releases all its decoding
26 // resources. 28 // resources.
27 virtual void ReleaseMediaResources(MediaPlayerBridge* player) = 0; 29 virtual void ReleaseMediaResources(MediaPlayerBridge* player) = 0;
28 }; 30 };
29 31
30 } // namespace media 32 } // namespace media
31 33
32 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_ 34 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_
OLDNEW
« no previous file with comments | « media/base/android/media_player_bridge.h ('k') | net/android/net_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698