| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/fake_text_track_stream.h" | 5 #include "media/base/fake_text_track_stream.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool FakeTextTrackStream::enabled() const { | 49 bool FakeTextTrackStream::enabled() const { |
| 50 return true; | 50 return true; |
| 51 } | 51 } |
| 52 | 52 |
| 53 void FakeTextTrackStream::set_enabled(bool enabled, base::TimeDelta timestamp) { | 53 void FakeTextTrackStream::set_enabled(bool enabled, base::TimeDelta timestamp) { |
| 54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void FakeTextTrackStream::SetStreamRestartedCB(const StreamRestartedCB& cb) { | 57 void FakeTextTrackStream::SetStreamStatusChangeCB( |
| 58 const StreamStatusChangeCB& cb) { |
| 58 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 59 } | 60 } |
| 60 | 61 |
| 61 void FakeTextTrackStream::SatisfyPendingRead( | 62 void FakeTextTrackStream::SatisfyPendingRead( |
| 62 const base::TimeDelta& start, | 63 const base::TimeDelta& start, |
| 63 const base::TimeDelta& duration, | 64 const base::TimeDelta& duration, |
| 64 const std::string& id, | 65 const std::string& id, |
| 65 const std::string& content, | 66 const std::string& content, |
| 66 const std::string& settings) { | 67 const std::string& settings) { |
| 67 DCHECK(!read_cb_.is_null()); | 68 DCHECK(!read_cb_.is_null()); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); | 101 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); |
| 101 } | 102 } |
| 102 | 103 |
| 103 void FakeTextTrackStream::Stop() { | 104 void FakeTextTrackStream::Stop() { |
| 104 stopping_ = true; | 105 stopping_ = true; |
| 105 if (!read_cb_.is_null()) | 106 if (!read_cb_.is_null()) |
| 106 AbortPendingRead(); | 107 AbortPendingRead(); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace media | 110 } // namespace media |
| OLD | NEW |