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

Side by Side Diff: chromecast/media/cma/pipeline/av_pipeline_impl.h

Issue 2361103002: [Chromecast] Make sure that Stop() stops buffer decryption (Closed)
Patch Set: 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 | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Buffer that has been pushed to the device but not processed yet. 166 // Buffer that has been pushed to the device but not processed yet.
167 scoped_refptr<DecoderBufferBase> pushed_buffer_; 167 scoped_refptr<DecoderBufferBase> pushed_buffer_;
168 168
169 // CdmContext, if available. 169 // CdmContext, if available.
170 CastCdmContext* cast_cdm_context_; 170 CastCdmContext* cast_cdm_context_;
171 int player_tracker_callback_id_; 171 int player_tracker_callback_id_;
172 172
173 base::WeakPtr<AvPipelineImpl> weak_this_; 173 base::WeakPtr<AvPipelineImpl> weak_this_;
174 base::WeakPtrFactory<AvPipelineImpl> weak_factory_; 174 base::WeakPtrFactory<AvPipelineImpl> weak_factory_;
175 // Special weak factory used for asynchronous decryption. This allows us to
alokp 2016/09/22 17:25:18 This comment does not seem accurate. IIUC it does
176 // cancel pending asynchronous decryption (by invalidating this factory's weak
177 // ptrs) without affecting other bound callbacks.
178 base::WeakPtrFactory<AvPipelineImpl> decrypt_weak_factory_;
175 179
176 DISALLOW_COPY_AND_ASSIGN(AvPipelineImpl); 180 DISALLOW_COPY_AND_ASSIGN(AvPipelineImpl);
177 }; 181 };
178 182
179 } // namespace media 183 } // namespace media
180 } // namespace chromecast 184 } // namespace chromecast
181 185
182 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_ 186 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698