| 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 #ifndef MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ | 5 #ifndef MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ |
| 6 #define MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ | 6 #define MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/macros.h" | 14 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 15 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 16 #include "media/base/data_source.h" | 18 #include "media/base/data_source.h" |
| 17 #include "media/base/ranges.h" | 19 #include "media/base/ranges.h" |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // reaching into this class from multiple threads to attain a WeakPtr. | 326 // reaching into this class from multiple threads to attain a WeakPtr. |
| 325 base::WeakPtr<BufferedDataSource> weak_ptr_; | 327 base::WeakPtr<BufferedDataSource> weak_ptr_; |
| 326 base::WeakPtrFactory<BufferedDataSource> weak_factory_; | 328 base::WeakPtrFactory<BufferedDataSource> weak_factory_; |
| 327 | 329 |
| 328 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); | 330 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); |
| 329 }; | 331 }; |
| 330 | 332 |
| 331 } // namespace media | 333 } // namespace media |
| 332 | 334 |
| 333 #endif // MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ | 335 #endif // MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ |
| OLD | NEW |