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

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

Issue 1171263004: Allow setting memory limits on media::DemuxerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace cleanup Created 5 years, 6 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
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/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // DemuxerStream implementation. 53 // DemuxerStream implementation.
54 void Read(const ReadCB& read_cb) override; 54 void Read(const ReadCB& read_cb) override;
55 AudioDecoderConfig audio_decoder_config() override; 55 AudioDecoderConfig audio_decoder_config() override;
56 VideoDecoderConfig video_decoder_config() override; 56 VideoDecoderConfig video_decoder_config() override;
57 Type type() const override; 57 Type type() const override;
58 Liveness liveness() const override; 58 Liveness liveness() const override;
59 void EnableBitstreamConverter() override; 59 void EnableBitstreamConverter() override;
60 bool SupportsConfigChanges() override; 60 bool SupportsConfigChanges() override;
61 VideoRotation video_rotation() override; 61 VideoRotation video_rotation() override;
62 size_t GetMemoryLimit() const override;
63 void SetMemoryLimit(size_t memory_limit) override;
62 64
63 private: 65 private:
64 // For a detailed state diagram please see this link: http://goo.gl/8jAok 66 // For a detailed state diagram please see this link: http://goo.gl/8jAok
65 // TODO(xhwang): Add a ASCII state diagram in this file after this class 67 // TODO(xhwang): Add a ASCII state diagram in this file after this class
66 // stabilizes. 68 // stabilizes.
67 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream. 69 // TODO(xhwang): Update this diagram for DecryptingDemuxerStream.
68 enum State { 70 enum State {
69 kUninitialized = 0, 71 kUninitialized = 0,
70 kDecryptorRequested, 72 kDecryptorRequested,
71 kIdle, 73 kIdle,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 138
137 base::WeakPtr<DecryptingDemuxerStream> weak_this_; 139 base::WeakPtr<DecryptingDemuxerStream> weak_this_;
138 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_; 140 base::WeakPtrFactory<DecryptingDemuxerStream> weak_factory_;
139 141
140 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream); 142 DISALLOW_COPY_AND_ASSIGN(DecryptingDemuxerStream);
141 }; 143 };
142 144
143 } // namespace media 145 } // namespace media
144 146
145 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_ 147 #endif // MEDIA_FILTERS_DECRYPTING_DEMUXER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698