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

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

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only Created 7 years, 6 months 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
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 WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 6 #define WEBKIT_RENDERER_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void AddBufferedByteRange(int64 start, int64 end) OVERRIDE; 93 virtual void AddBufferedByteRange(int64 start, int64 end) OVERRIDE;
94 virtual void AddBufferedTimeRange(base::TimeDelta start, 94 virtual void AddBufferedTimeRange(base::TimeDelta start,
95 base::TimeDelta end) OVERRIDE; 95 base::TimeDelta end) OVERRIDE;
96 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; 96 virtual void SetDuration(base::TimeDelta duration) OVERRIDE;
97 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; 97 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE;
98 98
99 // Callbacks for ChunkDemuxer. 99 // Callbacks for ChunkDemuxer.
100 void OnDemuxerInitDone(media::PipelineStatus status); 100 void OnDemuxerInitDone(media::PipelineStatus status);
101 void OnDemuxerStopDone(); 101 void OnDemuxerStopDone();
102 void OnDemuxerOpened(); 102 void OnDemuxerOpened();
103 void OnNeedKey(const std::string& key_system, 103 void OnNeedKey(const std::string& type,
104 const std::string& type,
105 const std::string& session_id, 104 const std::string& session_id,
106 scoped_ptr<uint8[]> init_data, 105 scoped_ptr<uint8[]> init_data,
107 int init_data_size); 106 int init_data_size);
108 scoped_ptr<media::TextTrack> OnAddTextTrack(media::TextKind kind, 107 scoped_ptr<media::TextTrack> OnAddTextTrack(media::TextKind kind,
109 const std::string& label, 108 const std::string& label,
110 const std::string& language); 109 const std::string& language);
111 110
112 // Reads an access unit from the demuxer stream |stream| and stores it in 111 // Reads an access unit from the demuxer stream |stream| and stores it in
113 // the |index|th access unit in |params|. 112 // the |index|th access unit in |params|.
114 void ReadFromDemuxerStream( 113 void ReadFromDemuxerStream(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; 156 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_;
158 157
159 bool seeking_; 158 bool seeking_;
160 size_t access_unit_size_; 159 size_t access_unit_size_;
161 160
162 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 161 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
163 }; 162 };
164 163
165 } // namespace webkit_media 164 } // namespace webkit_media
166 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 165 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | webkit/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698