 Chromium Code Reviews
 Chromium Code Reviews Issue 19649007:
  Update the WebMediaSourceClientImpl & ChunkDemuxer to received explicit end of stream cancellation.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 19649007:
  Update the WebMediaSourceClientImpl & ChunkDemuxer to received explicit end of stream cancellation.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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 MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 
| 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 
| 7 | 7 | 
| 8 #include <map> | 8 #include <map> | 
| 9 #include <string> | 9 #include <string> | 
| 10 #include <utility> | 10 #include <utility> | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 // Notifies the demuxer that the duration of the media has changed to | 117 // Notifies the demuxer that the duration of the media has changed to | 
| 118 // |duration|. | 118 // |duration|. | 
| 119 void SetDuration(double duration); | 119 void SetDuration(double duration); | 
| 120 | 120 | 
| 121 // Sets a time |offset| to be applied to subsequent buffers appended to the | 121 // Sets a time |offset| to be applied to subsequent buffers appended to the | 
| 122 // source buffer assicated with |id|. Returns true if the offset is set | 122 // source buffer assicated with |id|. Returns true if the offset is set | 
| 123 // properly, false if the offset cannot be applied because we're in the | 123 // properly, false if the offset cannot be applied because we're in the | 
| 124 // middle of parsing a media segment. | 124 // middle of parsing a media segment. | 
| 125 bool SetTimestampOffset(const std::string& id, base::TimeDelta offset); | 125 bool SetTimestampOffset(const std::string& id, base::TimeDelta offset); | 
| 126 | 126 | 
| 127 // Signals an EndOfStream request. | 127 // Signals an EndOfStream request. | 
| 
scherkus (not reviewing)
2013/07/19 20:35:47
do you want to keep the EndOfStream formatting in
 
acolwell GONE FROM CHROMIUM
2013/07/19 20:45:54
Nope. Reworded the comment.
 | |
| 128 void EndOfStream(PipelineStatus status); | 128 void MarkEndOfStream(PipelineStatus status); | 
| 129 void UnmarkEndOfStream(); | |
| 129 void Shutdown(); | 130 void Shutdown(); | 
| 130 | 131 | 
| 131 void SetMemoryLimitsForTesting(int memory_limit); | 132 void SetMemoryLimitsForTesting(int memory_limit); | 
| 132 | 133 | 
| 133 private: | 134 private: | 
| 134 enum State { | 135 enum State { | 
| 135 WAITING_FOR_INIT, | 136 WAITING_FOR_INIT, | 
| 136 INITIALIZING, | 137 INITIALIZING, | 
| 137 INITIALIZED, | 138 INITIALIZED, | 
| 138 ENDED, | 139 ENDED, | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 // removed with RemoveID() but can not be re-added (yet). | 246 // removed with RemoveID() but can not be re-added (yet). | 
| 246 std::string source_id_audio_; | 247 std::string source_id_audio_; | 
| 247 std::string source_id_video_; | 248 std::string source_id_video_; | 
| 248 | 249 | 
| 249 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 250 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 
| 250 }; | 251 }; | 
| 251 | 252 | 
| 252 } // namespace media | 253 } // namespace media | 
| 253 | 254 | 
| 254 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 255 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 
| OLD | NEW |