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_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 void DetachExternalVideoSurface(int player_id); | 80 void DetachExternalVideoSurface(int player_id); |
81 #endif | 81 #endif |
82 | 82 |
83 media::MediaPlayerBridge* GetFullscreenPlayer(); | 83 media::MediaPlayerBridge* GetFullscreenPlayer(); |
84 media::MediaPlayerBridge* GetPlayer(int player_id); | 84 media::MediaPlayerBridge* GetPlayer(int player_id); |
85 | 85 |
86 private: | 86 private: |
87 // Message handlers. | 87 // Message handlers. |
88 void OnEnterFullscreen(int player_id); | 88 void OnEnterFullscreen(int player_id); |
89 void OnExitFullscreen(int player_id); | 89 void OnExitFullscreen(int player_id); |
90 void OnInitialize(int player_id, const GURL& url, | 90 void OnInitialize(int player_id, const GURL& url, int flags, |
qinmin
2013/04/29 17:31:49
why not use MediaPlayerBridge::MediaType Enum inst
palmer
2013/04/29 18:58:44
Yes, I tend to prefer the most specific type possi
wonsik
2013/05/01 14:15:38
Done.
| |
91 bool is_media_source, | |
92 const GURL& first_party_for_cookies); | 91 const GURL& first_party_for_cookies); |
93 void OnStart(int player_id); | 92 void OnStart(int player_id); |
94 void OnSeek(int player_id, base::TimeDelta time); | 93 void OnSeek(int player_id, base::TimeDelta time); |
95 void OnPause(int player_id); | 94 void OnPause(int player_id); |
96 void OnReleaseResources(int player_id); | 95 void OnReleaseResources(int player_id); |
97 void OnDestroyPlayer(int player_id); | 96 void OnDestroyPlayer(int player_id); |
98 #if defined(GOOGLE_TV) | 97 #if defined(GOOGLE_TV) |
99 void OnRequestExternalSurface(int player_id); | 98 void OnRequestExternalSurface(int player_id); |
100 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect); | 99 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect); |
101 void OnDemuxerReady( | 100 void OnDemuxerReady( |
(...skipping 14 matching lines...) Expand all Loading... | |
116 int fullscreen_player_id_; | 115 int fullscreen_player_id_; |
117 | 116 |
118 WebContents* web_contents_; | 117 WebContents* web_contents_; |
119 | 118 |
120 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); | 119 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); |
121 }; | 120 }; |
122 | 121 |
123 } // namespace content | 122 } // namespace content |
124 | 123 |
125 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 124 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
OLD | NEW |