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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual void OnPause(int player_id); | 116 virtual void OnPause(int player_id); |
117 virtual void OnReleaseResources(int player_id); | 117 virtual void OnReleaseResources(int player_id); |
118 virtual void OnDestroyPlayer(int player_id); | 118 virtual void OnDestroyPlayer(int player_id); |
119 virtual void OnDemuxerReady( | 119 virtual void OnDemuxerReady( |
120 int player_id, | 120 int player_id, |
121 const media::MediaPlayerHostMsg_DemuxerReady_Params& params); | 121 const media::MediaPlayerHostMsg_DemuxerReady_Params& params); |
122 virtual void OnReadFromDemuxerAck( | 122 virtual void OnReadFromDemuxerAck( |
123 int player_id, | 123 int player_id, |
124 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); | 124 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); |
125 void OnMediaSeekRequestAck(int player_id, unsigned seek_request_id); | 125 void OnMediaSeekRequestAck(int player_id, unsigned seek_request_id); |
| 126 void OnInitializeCDM(int media_keys_id, const std::vector<uint8>& uuid); |
126 void OnGenerateKeyRequest(int media_keys_id, | 127 void OnGenerateKeyRequest(int media_keys_id, |
127 const std::string& type, | 128 const std::string& type, |
128 const std::vector<uint8>& init_data); | 129 const std::vector<uint8>& init_data); |
129 void OnAddKey(int media_keys_id, | 130 void OnAddKey(int media_keys_id, |
130 const std::vector<uint8>& key, | 131 const std::vector<uint8>& key, |
131 const std::vector<uint8>& init_data, | 132 const std::vector<uint8>& init_data, |
132 const std::string& session_id); | 133 const std::string& session_id); |
133 void OnCancelKeyRequest(int media_keys_id, const std::string& session_id); | 134 void OnCancelKeyRequest(int media_keys_id, const std::string& session_id); |
134 void OnDurationChanged(int player_id, const base::TimeDelta& duration); | 135 void OnDurationChanged(int player_id, const base::TimeDelta& duration); |
135 | 136 |
(...skipping 29 matching lines...) Expand all Loading... |
165 | 166 |
166 // Object for retrieving resources media players. | 167 // Object for retrieving resources media players. |
167 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; | 168 scoped_ptr<media::MediaResourceGetter> media_resource_getter_; |
168 | 169 |
169 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); | 170 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerImpl); |
170 }; | 171 }; |
171 | 172 |
172 } // namespace content | 173 } // namespace content |
173 | 174 |
174 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ | 175 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_IMPL_H_ |
OLD | NEW |