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

Unified Diff: media/base/android/media_player_bridge_manager.h

Issue 10919075: Move android mediaplayer from render process to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: media/base/android/media_player_bridge_manager.h
diff --git a/media/base/android/media_player_bridge_manager.h b/media/base/android/media_player_bridge_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..6668802bc3f5420ad9841cbc9f5c28f41846a159
--- /dev/null
+++ b/media/base/android/media_player_bridge_manager.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_
+#define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_
+
+namespace media {
+
+class MediaPlayerBridge;
+
+// This class is responsible for managing active MediaPlayerBridge objects.
+// It is implemented by webkit_media::MediaPlayerBridgeManagerImpl and
+// content::MediaPlayerManagerAndroid.
+class MediaPlayerBridgeManager {
+ public:
+ virtual ~MediaPlayerBridgeManager() {};
+
+ virtual void RequestMediaResources(MediaPlayerBridge* player) = 0;
+ virtual void ReleaseMediaResources(MediaPlayerBridge* player) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698