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

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

Issue 770423004: Add dedicated PipelineStatus UMAs for encrypted playback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL comments Created 6 years 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 | « content/browser/media/media_internals.cc ('k') | media/filters/decrypting_video_decoder.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_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "media/base/decryptor.h" 10 #include "media/base/decryptor.h"
(...skipping 23 matching lines...) Expand all
34 // VideoDecoder implementation. 34 // VideoDecoder implementation.
35 std::string GetDisplayName() const override; 35 std::string GetDisplayName() const override;
36 void Initialize(const VideoDecoderConfig& config, 36 void Initialize(const VideoDecoderConfig& config,
37 bool low_delay, 37 bool low_delay,
38 const PipelineStatusCB& status_cb, 38 const PipelineStatusCB& status_cb,
39 const OutputCB& output_cb) override; 39 const OutputCB& output_cb) override;
40 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 40 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
41 const DecodeCB& decode_cb) override; 41 const DecodeCB& decode_cb) override;
42 void Reset(const base::Closure& closure) override; 42 void Reset(const base::Closure& closure) override;
43 43
44 static const char kDecoderName[];
45
44 private: 46 private:
45 // For a detailed state diagram please see this link: http://goo.gl/8jAok 47 // For a detailed state diagram please see this link: http://goo.gl/8jAok
46 // TODO(xhwang): Add a ASCII state diagram in this file after this class 48 // TODO(xhwang): Add a ASCII state diagram in this file after this class
47 // stabilizes. 49 // stabilizes.
48 enum State { 50 enum State {
49 kUninitialized = 0, 51 kUninitialized = 0,
50 kDecryptorRequested, 52 kDecryptorRequested,
51 kPendingDecoderInit, 53 kPendingDecoderInit,
52 kIdle, 54 kIdle,
53 kPendingDecode, 55 kPendingDecode,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // NOTE: Weak pointers must be invalidated before all other member variables. 113 // NOTE: Weak pointers must be invalidated before all other member variables.
112 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_; 114 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_;
113 base::WeakPtr<DecryptingVideoDecoder> weak_this_; 115 base::WeakPtr<DecryptingVideoDecoder> weak_this_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder); 117 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder);
116 }; 118 };
117 119
118 } // namespace media 120 } // namespace media
119 121
120 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 122 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « content/browser/media/media_internals.cc ('k') | media/filters/decrypting_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698