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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void DetachExternalVideoSurface(int player_id); | 85 void DetachExternalVideoSurface(int player_id); |
86 #endif | 86 #endif |
87 | 87 |
88 media::MediaPlayerAndroid* GetFullscreenPlayer(); | 88 media::MediaPlayerAndroid* GetFullscreenPlayer(); |
89 media::MediaPlayerAndroid* GetPlayer(int player_id); | 89 media::MediaPlayerAndroid* GetPlayer(int player_id); |
90 | 90 |
91 private: | 91 private: |
92 // Message handlers. | 92 // Message handlers. |
93 void OnEnterFullscreen(int player_id); | 93 void OnEnterFullscreen(int player_id); |
94 void OnExitFullscreen(int player_id); | 94 void OnExitFullscreen(int player_id); |
95 void OnInitialize(int player_id, const GURL& url, | 95 void OnInitialize(int player_id, |
96 bool is_media_source, | 96 const GURL& url, |
| 97 media::MediaPlayerAndroid::SourceType media_source_type, |
97 const GURL& first_party_for_cookies); | 98 const GURL& first_party_for_cookies); |
98 void OnStart(int player_id); | 99 void OnStart(int player_id); |
99 void OnSeek(int player_id, base::TimeDelta time); | 100 void OnSeek(int player_id, base::TimeDelta time); |
100 void OnPause(int player_id); | 101 void OnPause(int player_id); |
101 void OnReleaseResources(int player_id); | 102 void OnReleaseResources(int player_id); |
102 void OnDestroyPlayer(int player_id); | 103 void OnDestroyPlayer(int player_id); |
103 #if defined(GOOGLE_TV) | 104 #if defined(GOOGLE_TV) |
104 void OnNotifyExternalSurface( | 105 void OnNotifyExternalSurface( |
105 int player_id, bool is_request, const gfx::RectF& rect); | 106 int player_id, bool is_request, const gfx::RectF& rect); |
106 void OnDemuxerReady( | 107 void OnDemuxerReady( |
(...skipping 17 matching lines...) Expand all Loading... |
124 | 125 |
125 // Object for retrieving resources media players. | 126 // Object for retrieving resources media players. |
126 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 127 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); | 129 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace content | 132 } // namespace content |
132 | 133 |
133 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 134 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
OLD | NEW |