OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
6 #define CONTENT_BROWSER_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 6 #define CONTENT_BROWSER_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 int player_id, | 112 int player_id, |
113 const GURL& url, | 113 const GURL& url, |
114 media::MediaPlayerAndroid::SourceType source_type, | 114 media::MediaPlayerAndroid::SourceType source_type, |
115 const GURL& first_party_for_cookies); | 115 const GURL& first_party_for_cookies); |
116 virtual void OnStart(int player_id); | 116 virtual void OnStart(int player_id); |
117 virtual void OnSeek(int player_id, base::TimeDelta time); | 117 virtual void OnSeek(int player_id, base::TimeDelta time); |
118 virtual void OnPause(int player_id); | 118 virtual void OnPause(int player_id); |
119 virtual void OnSetVolume(int player_id, double volume); | 119 virtual void OnSetVolume(int player_id, double volume); |
120 virtual void OnReleaseResources(int player_id); | 120 virtual void OnReleaseResources(int player_id); |
121 virtual void OnDestroyPlayer(int player_id); | 121 virtual void OnDestroyPlayer(int player_id); |
122 virtual void OnDemuxerReady( | 122 virtual void OnDemuxerReady(int player_id, |
123 int player_id, | 123 const media::DemuxerConfigs& configs); |
124 const media::MediaPlayerHostMsg_DemuxerReady_Params& params); | 124 virtual void OnReadFromDemuxerAck(int player_id, |
125 virtual void OnReadFromDemuxerAck( | 125 const media::DemuxerData& data); |
126 int player_id, | |
127 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); | |
128 void OnMediaSeekRequestAck(int player_id, unsigned seek_request_id); | 126 void OnMediaSeekRequestAck(int player_id, unsigned seek_request_id); |
129 void OnInitializeCDM(int media_keys_id, const std::vector<uint8>& uuid); | 127 void OnInitializeCDM(int media_keys_id, const std::vector<uint8>& uuid); |
130 void OnGenerateKeyRequest(int media_keys_id, | 128 void OnGenerateKeyRequest(int media_keys_id, |
131 const std::string& type, | 129 const std::string& type, |
132 const std::vector<uint8>& init_data); | 130 const std::vector<uint8>& init_data); |
133 void OnAddKey(int media_keys_id, | 131 void OnAddKey(int media_keys_id, |
134 const std::vector<uint8>& key, | 132 const std::vector<uint8>& key, |
135 const std::vector<uint8>& init_data, | 133 const std::vector<uint8>& init_data, |
136 const std::string& session_id); | 134 const std::string& session_id); |
137 void OnCancelKeyRequest(int media_keys_id, const std::string& session_id); | 135 void OnCancelKeyRequest(int media_keys_id, const std::string& session_id); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 171 |
174 // Object for retrieving resources media players. | 172 // Object for retrieving resources media players. |
175 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 173 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
176 | 174 |
177 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); | 175 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); |
178 }; | 176 }; |
179 | 177 |
180 } // namespace content | 178 } // namespace content |
181 | 179 |
182 #endif // CONTENT_BROWSER_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ | 180 #endif // CONTENT_BROWSER_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |