| OLD | NEW |
| 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 #include "media/filters/decrypting_video_decoder.h" | 5 #include "media/filters/decrypting_video_decoder.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 13 #include "media/base/bind_to_current_loop.h" | 13 #include "media/base/bind_to_current_loop.h" |
| 14 #include "media/base/cdm_context.h" | 14 #include "media/base/cdm_context.h" |
| 15 #include "media/base/decoder_buffer.h" | 15 #include "media/base/decoder_buffer.h" |
| 16 #include "media/base/media_log.h" | 16 #include "media/base/media_log.h" |
| 17 #include "media/base/pipeline.h" | |
| 18 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
| 19 | 18 |
| 20 namespace media { | 19 namespace media { |
| 21 | 20 |
| 22 const char DecryptingVideoDecoder::kDecoderName[] = "DecryptingVideoDecoder"; | 21 const char DecryptingVideoDecoder::kDecoderName[] = "DecryptingVideoDecoder"; |
| 23 | 22 |
| 24 DecryptingVideoDecoder::DecryptingVideoDecoder( | 23 DecryptingVideoDecoder::DecryptingVideoDecoder( |
| 25 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 24 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 26 const scoped_refptr<MediaLog>& media_log, | 25 const scoped_refptr<MediaLog>& media_log, |
| 27 const base::Closure& waiting_for_decryption_key_cb) | 26 const base::Closure& waiting_for_decryption_key_cb) |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 } | 300 } |
| 302 | 301 |
| 303 void DecryptingVideoDecoder::DoReset() { | 302 void DecryptingVideoDecoder::DoReset() { |
| 304 DCHECK(init_cb_.is_null()); | 303 DCHECK(init_cb_.is_null()); |
| 305 DCHECK(decode_cb_.is_null()); | 304 DCHECK(decode_cb_.is_null()); |
| 306 state_ = kIdle; | 305 state_ = kIdle; |
| 307 base::ResetAndReturn(&reset_cb_).Run(); | 306 base::ResetAndReturn(&reset_cb_).Run(); |
| 308 } | 307 } |
| 309 | 308 |
| 310 } // namespace media | 309 } // namespace media |
| OLD | NEW |