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 #ifndef MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ | 5 #ifndef MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ |
6 #define MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ | 6 #define MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
10 #include "media/filters/ffmpeg_glue.h" | 11 #include "media/filters/ffmpeg_glue.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 class DataSource; | 15 class DataSource; |
15 | 16 |
16 // An implementation of FFmpegURLProtocol that blocks until the underlying | 17 // An implementation of FFmpegURLProtocol that blocks until the underlying |
17 // asynchronous DataSource::Read() operation completes. | 18 // asynchronous DataSource::Read() operation completes. |
18 class MEDIA_EXPORT BlockingUrlProtocol : public FFmpegURLProtocol { | 19 class MEDIA_EXPORT BlockingUrlProtocol : public FFmpegURLProtocol { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 54 |
54 // Cached position within the data source. | 55 // Cached position within the data source. |
55 int64_t read_position_; | 56 int64_t read_position_; |
56 | 57 |
57 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockingUrlProtocol); | 58 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockingUrlProtocol); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace media | 61 } // namespace media |
61 | 62 |
62 #endif // MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ | 63 #endif // MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ |
OLD | NEW |