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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 base::TimeDelta end) OVERRIDE; | 87 base::TimeDelta end) OVERRIDE; |
88 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; | 88 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; |
89 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; | 89 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; |
90 | 90 |
91 // Callbacks for ChunkDemuxer & Decryptor. | 91 // Callbacks for ChunkDemuxer & Decryptor. |
92 void OnDemuxerInitDone(media::PipelineStatus status); | 92 void OnDemuxerInitDone(media::PipelineStatus status); |
93 void OnDemuxerOpened(); | 93 void OnDemuxerOpened(); |
94 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 94 void OnKeyAdded(const std::string& key_system, const std::string& session_id); |
95 void OnKeyError(const std::string& key_system, | 95 void OnKeyError(const std::string& key_system, |
96 const std::string& session_id, | 96 const std::string& session_id, |
97 media::Decryptor::KeyError error_code, | 97 media::MediaKeys::KeyError error_code, |
98 int system_code); | 98 int system_code); |
99 void OnKeyMessage(const std::string& key_system, | 99 void OnKeyMessage(const std::string& key_system, |
100 const std::string& session_id, | 100 const std::string& session_id, |
101 const std::string& message, | 101 const std::string& message, |
102 const std::string& default_url); | 102 const std::string& default_url); |
103 void OnNeedKey(const std::string& key_system, | 103 void OnNeedKey(const std::string& key_system, |
104 const std::string& type, | 104 const std::string& type, |
105 const std::string& session_id, | 105 const std::string& session_id, |
106 scoped_ptr<uint8[]> init_data, | 106 scoped_ptr<uint8[]> init_data, |
107 int init_data_size); | 107 int init_data_size); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; | 157 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; |
158 | 158 |
159 bool seeking_; | 159 bool seeking_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 161 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace webkit_media | 164 } // namespace webkit_media |
165 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 165 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
166 | 166 |
OLD | NEW |