OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
8 #include "media/blink/multibuffer_reader.h" | 10 #include "media/blink/multibuffer_reader.h" |
9 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
10 | 12 |
11 namespace media { | 13 namespace media { |
12 | 14 |
13 MultiBufferReader::MultiBufferReader( | 15 MultiBufferReader::MultiBufferReader( |
14 MultiBuffer* multibuffer, | 16 MultiBuffer* multibuffer, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 multibuffer_->AddReader(preload_pos_, this); | 235 multibuffer_->AddReader(preload_pos_, this); |
234 } else if (multibuffer_->Contains(preload_pos_ - 1)) { | 236 } else if (multibuffer_->Contains(preload_pos_ - 1)) { |
235 --preload_pos_; | 237 --preload_pos_; |
236 multibuffer_->AddReader(preload_pos_, this); | 238 multibuffer_->AddReader(preload_pos_, this); |
237 } | 239 } |
238 } | 240 } |
239 CheckWait(); | 241 CheckWait(); |
240 } | 242 } |
241 | 243 |
242 } // namespace media | 244 } // namespace media |
OLD | NEW |