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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // The instance of this class is supposed to be created by either Create() | 88 // The instance of this class is supposed to be created by either Create() |
89 // method of MediaPlayerManager or the derived classes constructors. | 89 // method of MediaPlayerManager or the derived classes constructors. |
90 explicit MediaPlayerManagerImpl(RenderViewHost* render_view_host); | 90 explicit MediaPlayerManagerImpl(RenderViewHost* render_view_host); |
91 | 91 |
92 // Message handlers. | 92 // Message handlers. |
93 virtual void OnEnterFullscreen(int player_id); | 93 virtual void OnEnterFullscreen(int player_id); |
94 virtual void OnExitFullscreen(int player_id); | 94 virtual void OnExitFullscreen(int player_id); |
95 virtual void OnInitialize( | 95 virtual void OnInitialize( |
96 int player_id, | 96 int player_id, |
97 const GURL& url, | 97 const GURL& url, |
98 bool is_media_source, | 98 media::MediaPlayerAndroid::SourceType source_type, |
99 const GURL& first_party_for_cookies); | 99 const GURL& first_party_for_cookies); |
100 virtual void OnStart(int player_id); | 100 virtual void OnStart(int player_id); |
101 virtual void OnSeek(int player_id, base::TimeDelta time); | 101 virtual void OnSeek(int player_id, base::TimeDelta time); |
102 virtual void OnPause(int player_id); | 102 virtual void OnPause(int player_id); |
103 virtual void OnReleaseResources(int player_id); | 103 virtual void OnReleaseResources(int player_id); |
104 virtual void OnDestroyPlayer(int player_id); | 104 virtual void OnDestroyPlayer(int player_id); |
105 virtual void OnDemuxerReady( | 105 virtual void OnDemuxerReady( |
106 int player_id, | 106 int player_id, |
107 const media::MediaPlayerHostMsg_DemuxerReady_Params& params); | 107 const media::MediaPlayerHostMsg_DemuxerReady_Params& params); |
108 virtual void OnReadFromDemuxerAck( | 108 virtual void OnReadFromDemuxerAck( |
(...skipping 26 matching lines...) Expand all Loading... |
135 | 135 |
136 // Object for retrieving resources media players. | 136 // Object for retrieving resources media players. |
137 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 137 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); | 139 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace content | 142 } // namespace content |
143 | 143 |
144 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 144 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
OLD | NEW |