Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: content/renderer/media/android/media_source_delegate.h

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "media/base/decryptor.h" 16 #include "media/base/cdm_context.h"
17 #include "media/base/demuxer.h" 17 #include "media/base/demuxer.h"
18 #include "media/base/media_keys.h" 18 #include "media/base/media_keys.h"
19 #include "media/base/pipeline_status.h" 19 #include "media/base/pipeline_status.h"
20 #include "media/base/ranges.h" 20 #include "media/base/ranges.h"
21 #include "media/base/text_track.h" 21 #include "media/base/text_track.h"
22 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 22 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
23 23
24 namespace base { 24 namespace base {
25 class SingleThreadTaskRunner; 25 class SingleThreadTaskRunner;
26 } 26 }
(...skipping 26 matching lines...) Expand all
53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
54 const scoped_refptr<media::MediaLog> media_log); 54 const scoped_refptr<media::MediaLog> media_log);
55 ~MediaSourceDelegate() override; 55 ~MediaSourceDelegate() override;
56 56
57 // Initialize the MediaSourceDelegate. |media_source| will be owned by 57 // Initialize the MediaSourceDelegate. |media_source| will be owned by
58 // this object after this call. 58 // this object after this call.
59 void InitializeMediaSource( 59 void InitializeMediaSource(
60 const MediaSourceOpenedCB& media_source_opened_cb, 60 const MediaSourceOpenedCB& media_source_opened_cb,
61 const media::Demuxer::EncryptedMediaInitDataCB& 61 const media::Demuxer::EncryptedMediaInitDataCB&
62 encrypted_media_init_data_cb, 62 encrypted_media_init_data_cb,
63 const media::SetDecryptorReadyCB& set_decryptor_ready_cb, 63 const media::SetCdmReadyCB& set_cdm_ready_cb,
64 const UpdateNetworkStateCB& update_network_state_cb, 64 const UpdateNetworkStateCB& update_network_state_cb,
65 const DurationChangeCB& duration_change_cb, 65 const DurationChangeCB& duration_change_cb,
66 const base::Closure& waiting_for_decryption_key_cb); 66 const base::Closure& waiting_for_decryption_key_cb);
67 67
68 blink::WebTimeRanges Buffered() const; 68 blink::WebTimeRanges Buffered() const;
69 size_t DecodedFrameCount() const; 69 size_t DecodedFrameCount() const;
70 size_t DroppedFrameCount() const; 70 size_t DroppedFrameCount() const;
71 size_t AudioDecodedByteCount() const; 71 size_t AudioDecodedByteCount() const;
72 size_t VideoDecodedByteCount() const; 72 size_t VideoDecodedByteCount() const;
73 73
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 RendererDemuxerAndroid* demuxer_client_; 179 RendererDemuxerAndroid* demuxer_client_;
180 int demuxer_client_id_; 180 int demuxer_client_id_;
181 181
182 scoped_refptr<media::MediaLog> media_log_; 182 scoped_refptr<media::MediaLog> media_log_;
183 UpdateNetworkStateCB update_network_state_cb_; 183 UpdateNetworkStateCB update_network_state_cb_;
184 DurationChangeCB duration_change_cb_; 184 DurationChangeCB duration_change_cb_;
185 185
186 scoped_ptr<media::ChunkDemuxer> chunk_demuxer_; 186 scoped_ptr<media::ChunkDemuxer> chunk_demuxer_;
187 bool is_demuxer_ready_; 187 bool is_demuxer_ready_;
188 188
189 media::SetDecryptorReadyCB set_decryptor_ready_cb_; 189 media::SetCdmReadyCB set_cdm_ready_cb_;
190 190
191 scoped_ptr<media::DecryptingDemuxerStream> audio_decrypting_demuxer_stream_; 191 scoped_ptr<media::DecryptingDemuxerStream> audio_decrypting_demuxer_stream_;
192 scoped_ptr<media::DecryptingDemuxerStream> video_decrypting_demuxer_stream_; 192 scoped_ptr<media::DecryptingDemuxerStream> video_decrypting_demuxer_stream_;
193 193
194 media::DemuxerStream* audio_stream_; 194 media::DemuxerStream* audio_stream_;
195 media::DemuxerStream* video_stream_; 195 media::DemuxerStream* video_stream_;
196 196
197 media::PipelineStatistics statistics_; 197 media::PipelineStatistics statistics_;
198 media::Ranges<base::TimeDelta> buffered_time_ranges_; 198 media::Ranges<base::TimeDelta> buffered_time_ranges_;
199 199
(...skipping 28 matching lines...) Expand all
228 base::WeakPtr<MediaSourceDelegate> main_weak_this_; 228 base::WeakPtr<MediaSourceDelegate> main_weak_this_;
229 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_; 229 base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_;
230 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_; 230 base::WeakPtrFactory<MediaSourceDelegate> media_weak_factory_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 232 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
233 }; 233 };
234 234
235 } // namespace content 235 } // namespace content
236 236
237 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 237 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698