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

Side by Side Diff: media/filters/decrypting_demuxer_stream.h

Issue 2199913002: Notify demux stream clients when a stream is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass DemuxerStream into the status callback Created 4 years, 4 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/filters/chunk_demuxer_unittest.cc ('k') | media/filters/decrypting_demuxer_stream.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 (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_DECRYPTING_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_
6 #define MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ 6 #define MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void Read(const ReadCB& read_cb) override; 57 void Read(const ReadCB& read_cb) override;
58 AudioDecoderConfig audio_decoder_config() override; 58 AudioDecoderConfig audio_decoder_config() override;
59 VideoDecoderConfig video_decoder_config() override; 59 VideoDecoderConfig video_decoder_config() override;
60 Type type() const override; 60 Type type() const override;
61 Liveness liveness() const override; 61 Liveness liveness() const override;
62 void EnableBitstreamConverter() override; 62 void EnableBitstreamConverter() override;
63 bool SupportsConfigChanges() override; 63 bool SupportsConfigChanges() override;
64 VideoRotation video_rotation() override; 64 VideoRotation video_rotation() override;
65 bool enabled() const override; 65 bool enabled() const override;
66 void set_enabled(bool enabled, base::TimeDelta timestamp) override; 66 void set_enabled(bool enabled, base::TimeDelta timestamp) override;
67 void SetStreamRestartedCB(const StreamRestartedCB& cb) override; 67 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override;
68 68
69 private: 69 private:
70 // For a detailed state diagram please see this link: http://goo.gl/8jAok 70 // For a detailed state diagram please see this link: http://goo.gl/8jAok
71 // TODO(xhwang): Add a ASCII state diagram in this file after this class 71 // TODO(xhwang): Add a ASCII state diagram in this file after this class
72 // stabilizes. 72 // stabilizes.
73 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. 73 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream.
74 enum State { 74 enum State {
75 kUninitialized = 0, 75 kUninitialized = 0,
76 kIdle, 76 kIdle,
77 kPendingDemuxerRead, 77 kPendingDemuxerRead,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 base::WeakPtr<DecryptingDemuxerStream> weak_this_; 134 base::WeakPtr<DecryptingDemuxerStream> weak_this_;
135 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; 135 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); 137 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream);
138 }; 138 };
139 139
140 } // namespace media 140 } // namespace media
141 141
142 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ 142 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/decrypting_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698