OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |