OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void DemuxerStartWaitingForSeek(); | 98 void DemuxerStartWaitingForSeek(); |
99 media::ChunkDemuxer::Status DemuxerAddId(const std::string& id, | 99 media::ChunkDemuxer::Status DemuxerAddId(const std::string& id, |
100 const std::string& type, | 100 const std::string& type, |
101 std::vector<std::string>& codecs); | 101 std::vector<std::string>& codecs); |
102 void DemuxerRemoveId(const std::string& id); | 102 void DemuxerRemoveId(const std::string& id); |
103 media::Ranges<base::TimeDelta> DemuxerBufferedRange(const std::string& id); | 103 media::Ranges<base::TimeDelta> DemuxerBufferedRange(const std::string& id); |
104 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length); | 104 bool DemuxerAppend(const std::string& id, const uint8* data, size_t length); |
105 void DemuxerAbort(const std::string& id); | 105 void DemuxerAbort(const std::string& id); |
106 void DemuxerEndOfStream(media::PipelineStatus status); | 106 void DemuxerEndOfStream(media::PipelineStatus status); |
107 void DemuxerShutdown(); | 107 void DemuxerShutdown(); |
| 108 void DemuxerTimestampOffset(const std::string& id, float offset); |
| 109 void DemuxerClearTimestampOffset(const std::string& id); |
108 | 110 |
109 // DecryptorClient implementation. | 111 // DecryptorClient implementation. |
110 virtual void KeyAdded(const std::string& key_system, | 112 virtual void KeyAdded(const std::string& key_system, |
111 const std::string& session_id) OVERRIDE; | 113 const std::string& session_id) OVERRIDE; |
112 virtual void KeyError(const std::string& key_system, | 114 virtual void KeyError(const std::string& key_system, |
113 const std::string& session_id, | 115 const std::string& session_id, |
114 media::Decryptor::KeyError error_code, | 116 media::Decryptor::KeyError error_code, |
115 int system_code) OVERRIDE; | 117 int system_code) OVERRIDE; |
116 virtual void KeyMessage(const std::string& key_system, | 118 virtual void KeyMessage(const std::string& key_system, |
117 const std::string& session_id, | 119 const std::string& session_id, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 int outstanding_repaints_; | 187 int outstanding_repaints_; |
186 | 188 |
187 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 189 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
188 | 190 |
189 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); | 191 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); |
190 }; | 192 }; |
191 | 193 |
192 } // namespace webkit_media | 194 } // namespace webkit_media |
193 | 195 |
194 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 196 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
OLD | NEW |