| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual void DemuxerClosed() OVERRIDE; | 93 virtual void DemuxerClosed() OVERRIDE; |
| 94 virtual void DemuxerNeedKey(scoped_array<uint8> init_data, | 94 virtual void DemuxerNeedKey(scoped_array<uint8> init_data, |
| 95 int init_data_size) OVERRIDE; | 95 int init_data_size) OVERRIDE; |
| 96 | 96 |
| 97 // Methods for Demuxer communication. | 97 // Methods for Demuxer communication. |
| 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 bool DemuxerBufferedRange(const std::string& id, | 103 media::Ranges<base::TimeDelta> DemuxerBufferedRange(const std::string& id); |
| 104 media::ChunkDemuxer::Ranges* ranges_out); | |
| 105 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); |
| 106 void DemuxerAbort(const std::string& id); | 105 void DemuxerAbort(const std::string& id); |
| 107 void DemuxerEndOfStream(media::PipelineStatus status); | 106 void DemuxerEndOfStream(media::PipelineStatus status); |
| 108 void DemuxerShutdown(); | 107 void DemuxerShutdown(); |
| 109 | 108 |
| 110 // DecryptorClient implementation. | 109 // DecryptorClient implementation. |
| 111 virtual void KeyAdded(const std::string& key_system, | 110 virtual void KeyAdded(const std::string& key_system, |
| 112 const std::string& session_id) OVERRIDE; | 111 const std::string& session_id) OVERRIDE; |
| 113 virtual void KeyError(const std::string& key_system, | 112 virtual void KeyError(const std::string& key_system, |
| 114 const std::string& session_id, | 113 const std::string& session_id, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 int outstanding_repaints_; | 185 int outstanding_repaints_; |
| 187 | 186 |
| 188 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 187 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
| 189 | 188 |
| 190 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); | 189 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 } // namespace webkit_media | 192 } // namespace webkit_media |
| 194 | 193 |
| 195 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 194 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
| OLD | NEW |