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_demuxer_stream.h" | 5 #include "media/filters/decrypting_demuxer_stream.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" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 bool DecryptingDemuxerStream::SupportsConfigChanges() { | 147 bool DecryptingDemuxerStream::SupportsConfigChanges() { |
148 return demuxer_stream_->SupportsConfigChanges(); | 148 return demuxer_stream_->SupportsConfigChanges(); |
149 } | 149 } |
150 | 150 |
151 VideoRotation DecryptingDemuxerStream::video_rotation() { | 151 VideoRotation DecryptingDemuxerStream::video_rotation() { |
152 return demuxer_stream_->video_rotation(); | 152 return demuxer_stream_->video_rotation(); |
153 } | 153 } |
154 | 154 |
| 155 bool DecryptingDemuxerStream::enabled() const { |
| 156 return demuxer_stream_->enabled(); |
| 157 } |
| 158 |
| 159 void DecryptingDemuxerStream::set_enabled(bool enabled, |
| 160 base::TimeDelta timestamp) { |
| 161 demuxer_stream_->set_enabled(enabled, timestamp); |
| 162 } |
| 163 |
| 164 void DecryptingDemuxerStream::SetStreamRestartedCB( |
| 165 const StreamRestartedCB& cb) { |
| 166 demuxer_stream_->SetStreamRestartedCB(cb); |
| 167 } |
| 168 |
155 DecryptingDemuxerStream::~DecryptingDemuxerStream() { | 169 DecryptingDemuxerStream::~DecryptingDemuxerStream() { |
156 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; | 170 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; |
157 DCHECK(task_runner_->BelongsToCurrentThread()); | 171 DCHECK(task_runner_->BelongsToCurrentThread()); |
158 | 172 |
159 if (state_ == kUninitialized) | 173 if (state_ == kUninitialized) |
160 return; | 174 return; |
161 | 175 |
162 if (decryptor_) { | 176 if (decryptor_) { |
163 decryptor_->CancelDecrypt(GetDecryptorStreamType()); | 177 decryptor_->CancelDecrypt(GetDecryptorStreamType()); |
164 decryptor_ = NULL; | 178 decryptor_ = NULL; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 break; | 383 break; |
370 } | 384 } |
371 | 385 |
372 default: | 386 default: |
373 NOTREACHED(); | 387 NOTREACHED(); |
374 return; | 388 return; |
375 } | 389 } |
376 } | 390 } |
377 | 391 |
378 } // namespace media | 392 } // namespace media |
OLD | NEW |