| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |