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

Side by Side Diff: media/base/media_url_demuxer.cc

Issue 2267963002: Add support for cancellation of demuxer reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix and add tests. Created 4 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
« no previous file with comments | « media/base/media_url_demuxer.h ('k') | media/base/mock_filters.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "media/base/media_url_demuxer.h" 5 #include "media/base/media_url_demuxer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void MediaUrlDemuxer::CancelPendingSeek(base::TimeDelta seek_time) {} 45 void MediaUrlDemuxer::CancelPendingSeek(base::TimeDelta seek_time) {}
46 46
47 void MediaUrlDemuxer::Seek(base::TimeDelta time, 47 void MediaUrlDemuxer::Seek(base::TimeDelta time,
48 const PipelineStatusCB& status_cb) { 48 const PipelineStatusCB& status_cb) {
49 task_runner_->PostTask(FROM_HERE, base::Bind(status_cb, PIPELINE_OK)); 49 task_runner_->PostTask(FROM_HERE, base::Bind(status_cb, PIPELINE_OK));
50 } 50 }
51 51
52 void MediaUrlDemuxer::Stop() {} 52 void MediaUrlDemuxer::Stop() {}
53 53
54 void MediaUrlDemuxer::AbortPendingReads() {}
55
54 base::TimeDelta MediaUrlDemuxer::GetStartTime() const { 56 base::TimeDelta MediaUrlDemuxer::GetStartTime() const {
55 // TODO(tguilbert): Investigate if we need to fetch information from the 57 // TODO(tguilbert): Investigate if we need to fetch information from the
56 // MediaPlayerRender in order to return a sensible value here. 58 // MediaPlayerRender in order to return a sensible value here.
57 return base::TimeDelta(); 59 return base::TimeDelta();
58 } 60 }
59 base::Time MediaUrlDemuxer::GetTimelineOffset() const { 61 base::Time MediaUrlDemuxer::GetTimelineOffset() const {
60 return base::Time(); 62 return base::Time();
61 } 63 }
62 64
63 int64_t MediaUrlDemuxer::GetMemoryUsage() const { 65 int64_t MediaUrlDemuxer::GetMemoryUsage() const {
64 return 0; 66 return 0;
65 } 67 }
66 68
67 void MediaUrlDemuxer::OnEnabledAudioTracksChanged( 69 void MediaUrlDemuxer::OnEnabledAudioTracksChanged(
68 const std::vector<MediaTrack::Id>& track_ids, 70 const std::vector<MediaTrack::Id>& track_ids,
69 base::TimeDelta currTime) { 71 base::TimeDelta currTime) {
70 NOTIMPLEMENTED(); 72 NOTIMPLEMENTED();
71 } 73 }
72 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( 74 void MediaUrlDemuxer::OnSelectedVideoTrackChanged(
73 const std::vector<MediaTrack::Id>& track_ids, 75 const std::vector<MediaTrack::Id>& track_ids,
74 base::TimeDelta currTime) { 76 base::TimeDelta currTime) {
75 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
76 } 78 }
77 79
78 } // namespace media 80 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_url_demuxer.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698