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

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

Issue 15772012: Separate MediaKeys interface from Decryptor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android 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 | Annotate | Revision Log
« no previous file with comments | « media/media.gyp ('k') | webkit/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 (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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "media/base/decryptor.h" 13 #include "media/base/decryptor.h"
14 #include "media/base/demuxer.h" 14 #include "media/base/demuxer.h"
15 #include "media/base/media_keys.h"
15 #include "media/base/pipeline_status.h" 16 #include "media/base/pipeline_status.h"
16 #include "media/base/ranges.h" 17 #include "media/base/ranges.h"
17 #include "media/base/text_track.h" 18 #include "media/base/text_track.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h"
19 20
20 namespace media { 21 namespace media {
21 class ChunkDemuxer; 22 class ChunkDemuxer;
22 class DecoderBuffer; 23 class DecoderBuffer;
23 class DemuxerStream; 24 class DemuxerStream;
24 class MediaLog; 25 class MediaLog;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void SetDuration(base::TimeDelta duration) OVERRIDE; 104 virtual void SetDuration(base::TimeDelta duration) OVERRIDE;
104 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE; 105 virtual void OnDemuxerError(media::PipelineStatus status) OVERRIDE;
105 106
106 // Callbacks for ChunkDemuxer & Decryptor. 107 // Callbacks for ChunkDemuxer & Decryptor.
107 void OnDemuxerInitDone(media::PipelineStatus status); 108 void OnDemuxerInitDone(media::PipelineStatus status);
108 void OnDemuxerStopDone(); 109 void OnDemuxerStopDone();
109 void OnDemuxerOpened(); 110 void OnDemuxerOpened();
110 void OnKeyAdded(const std::string& key_system, const std::string& session_id); 111 void OnKeyAdded(const std::string& key_system, const std::string& session_id);
111 void OnKeyError(const std::string& key_system, 112 void OnKeyError(const std::string& key_system,
112 const std::string& session_id, 113 const std::string& session_id,
113 media::Decryptor::KeyError error_code, 114 media::MediaKeys::KeyError error_code,
114 int system_code); 115 int system_code);
115 void OnKeyMessage(const std::string& key_system, 116 void OnKeyMessage(const std::string& key_system,
116 const std::string& session_id, 117 const std::string& session_id,
117 const std::string& message, 118 const std::string& message,
118 const std::string& default_url); 119 const std::string& default_url);
119 void OnNeedKey(const std::string& key_system, 120 void OnNeedKey(const std::string& key_system,
120 const std::string& type, 121 const std::string& type,
121 const std::string& session_id, 122 const std::string& session_id,
122 scoped_ptr<uint8[]> init_data, 123 scoped_ptr<uint8[]> init_data,
123 int init_data_size); 124 int init_data_size);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; 173 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_;
173 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; 174 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_;
174 175
175 bool seeking_; 176 bool seeking_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 178 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
178 }; 179 };
179 180
180 } // namespace webkit_media 181 } // namespace webkit_media
181 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 182 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | webkit/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698