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

Side by Side Diff: webkit/media/webmediaplayer_proxy.h

Issue 10879056: Support setting an explicit duration on MediaSource objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: response to CR Created 8 years, 3 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 | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_proxy.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEBMEDIAPLAYER_PROXY_H_ 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Methods for Demuxer communication. 82 // Methods for Demuxer communication.
83 void DemuxerStartWaitingForSeek(); 83 void DemuxerStartWaitingForSeek();
84 void DemuxerCancelPendingSeek(); 84 void DemuxerCancelPendingSeek();
85 media::ChunkDemuxer::Status DemuxerAddId(const std::string& id, 85 media::ChunkDemuxer::Status DemuxerAddId(const std::string& id,
86 const std::string& type, 86 const std::string& type,
87 std::vector<std::string>& codecs); 87 std::vector<std::string>& codecs);
88 void DemuxerRemoveId(const std::string& id); 88 void DemuxerRemoveId(const std::string& id);
89 media::Ranges<base::TimeDelta> DemuxerBufferedRange(const std::string& id); 89 media::Ranges<base::TimeDelta> DemuxerBufferedRange(const std::string& id);
90 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length); 90 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length);
91 void DemuxerAbort(const std::string& id); 91 void DemuxerAbort(const std::string& id);
92 void DemuxerSetDuration(base::TimeDelta duration);
92 void DemuxerEndOfStream(media::PipelineStatus status); 93 void DemuxerEndOfStream(media::PipelineStatus status);
93 void DemuxerShutdown(); 94 void DemuxerShutdown();
94 bool DemuxerSetTimestampOffset(const std::string& id, base::TimeDelta offset); 95 bool DemuxerSetTimestampOffset(const std::string& id, base::TimeDelta offset);
95 96
96 // DecryptorClient implementation. 97 // DecryptorClient implementation.
97 virtual void KeyAdded(const std::string& key_system, 98 virtual void KeyAdded(const std::string& key_system,
98 const std::string& session_id) OVERRIDE; 99 const std::string& session_id) OVERRIDE;
99 virtual void KeyError(const std::string& key_system, 100 virtual void KeyError(const std::string& key_system,
100 const std::string& session_id, 101 const std::string& session_id,
101 media::Decryptor::KeyError error_code, 102 media::Decryptor::KeyError error_code,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 int outstanding_repaints_; 156 int outstanding_repaints_;
156 157
157 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; 158 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_;
158 159
159 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); 160 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy);
160 }; 161 };
161 162
162 } // namespace webkit_media 163 } // namespace webkit_media
163 164
164 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ 165 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
OLDNEW
« no previous file with comments | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698