OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 5 #ifndef WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
6 #define WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 6 #define WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; | 103 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; |
104 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; | 104 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; |
105 | 105 |
106 // Callbacks for ChunkDemuxer & Decryptor. | 106 // Callbacks for ChunkDemuxer & Decryptor. |
107 void OnDemuxerInitDone(media::PipelineStatus status); | 107 void OnDemuxerInitDone(media::PipelineStatus status); |
108 void OnDemuxerStopDone(); | 108 void OnDemuxerStopDone(); |
109 void OnDemuxerOpened(); | 109 void OnDemuxerOpened(); |
110 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 110 void OnKeyAdded(const std::string& key_system, const std::string& session_id); |
111 void OnKeyError(const std::string& key_system, | 111 void OnKeyError(const std::string& key_system, |
112 const std::string& session_id, | 112 const std::string& session_id, |
113 media::Decryptor::KeyError error_code, | 113 media::MediaKeys::KeyError error_code, |
114 int system_code); | 114 int system_code); |
115 void OnKeyMessage(const std::string& key_system, | 115 void OnKeyMessage(const std::string& key_system, |
116 const std::string& session_id, | 116 const std::string& session_id, |
117 const std::string& message, | 117 const std::string& message, |
118 const std::string& default_url); | 118 const std::string& default_url); |
119 void OnNeedKey(const std::string& key_system, | 119 void OnNeedKey(const std::string& key_system, |
120 const std::string& type, | 120 const std::string& type, |
121 const std::string& session_id, | 121 const std::string& session_id, |
122 scoped_ptr<uint8[]> init_data, | 122 scoped_ptr<uint8[]> init_data, |
123 int init_data_size); | 123 int init_data_size); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; | 172 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; |
173 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; | 173 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; |
174 | 174 |
175 bool seeking_; | 175 bool seeking_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 177 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace webkit_media | 180 } // namespace webkit_media |
181 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 181 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
OLD | NEW |