| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void DetachExternalVideoSurface(int player_id); | 81 void DetachExternalVideoSurface(int player_id); |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 media::MediaPlayerBridge* GetFullscreenPlayer(); | 84 media::MediaPlayerBridge* GetFullscreenPlayer(); |
| 85 media::MediaPlayerBridge* GetPlayer(int player_id); | 85 media::MediaPlayerBridge* GetPlayer(int player_id); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 // Message handlers. | 88 // Message handlers. |
| 89 void OnEnterFullscreen(int player_id); | 89 void OnEnterFullscreen(int player_id); |
| 90 void OnExitFullscreen(int player_id); | 90 void OnExitFullscreen(int player_id); |
| 91 void OnInitialize(int player_id, const GURL& url, | 91 void OnInitialize(int player_id, |
| 92 bool is_media_source, | 92 const GURL& url, |
| 93 media::MediaPlayerBridge::MediaSource media_source, |
| 93 const GURL& first_party_for_cookies); | 94 const GURL& first_party_for_cookies); |
| 94 void OnStart(int player_id); | 95 void OnStart(int player_id); |
| 95 void OnSeek(int player_id, base::TimeDelta time); | 96 void OnSeek(int player_id, base::TimeDelta time); |
| 96 void OnPause(int player_id); | 97 void OnPause(int player_id); |
| 97 void OnReleaseResources(int player_id); | 98 void OnReleaseResources(int player_id); |
| 98 void OnDestroyPlayer(int player_id); | 99 void OnDestroyPlayer(int player_id); |
| 99 #if defined(GOOGLE_TV) | 100 #if defined(GOOGLE_TV) |
| 100 void OnRequestExternalSurface(int player_id); | 101 void OnRequestExternalSurface(int player_id); |
| 101 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect); | 102 void OnNotifyGeometryChange(int player_id, const gfx::RectF& rect); |
| 102 void OnDemuxerReady( | 103 void OnDemuxerReady( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 120 | 121 |
| 121 // Object for retrieving resources media players. | 122 // Object for retrieving resources media players. |
| 122 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 123 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); | 125 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace content | 128 } // namespace content |
| 128 | 129 |
| 129 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 130 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
| OLD | NEW |