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

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

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_log.cc ('k') | media/base/media_url_demuxer.cc » ('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 #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_ 5 #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_
6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ 6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Demuxer interface. 41 // Demuxer interface.
42 std::string GetDisplayName() const override; 42 std::string GetDisplayName() const override;
43 void Initialize(DemuxerHost* host, 43 void Initialize(DemuxerHost* host,
44 const PipelineStatusCB& status_cb, 44 const PipelineStatusCB& status_cb,
45 bool enable_text_tracks) override; 45 bool enable_text_tracks) override;
46 void StartWaitingForSeek(base::TimeDelta seek_time) override; 46 void StartWaitingForSeek(base::TimeDelta seek_time) override;
47 void CancelPendingSeek(base::TimeDelta seek_time) override; 47 void CancelPendingSeek(base::TimeDelta seek_time) override;
48 void Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) override; 48 void Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) override;
49 void Stop() override; 49 void Stop() override;
50 void AbortPendingReads() override;
50 base::TimeDelta GetStartTime() const override; 51 base::TimeDelta GetStartTime() const override;
51 base::Time GetTimelineOffset() const override; 52 base::Time GetTimelineOffset() const override;
52 int64_t GetMemoryUsage() const override; 53 int64_t GetMemoryUsage() const override;
53 void OnEnabledAudioTracksChanged(const std::vector<MediaTrack::Id>& track_ids, 54 void OnEnabledAudioTracksChanged(const std::vector<MediaTrack::Id>& track_ids,
54 base::TimeDelta currTime) override; 55 base::TimeDelta currTime) override;
55 void OnSelectedVideoTrackChanged(const std::vector<MediaTrack::Id>& track_ids, 56 void OnSelectedVideoTrackChanged(const std::vector<MediaTrack::Id>& track_ids,
56 base::TimeDelta currTime) override; 57 base::TimeDelta currTime) override;
57 58
58 private: 59 private:
59 GURL url_; 60 GURL url_;
60 61
61 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 62 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer); 64 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer);
64 }; 65 };
65 66
66 } // namespace media 67 } // namespace media
67 68
68 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_ 69 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/media_log.cc ('k') | media/base/media_url_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698