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_ACTIVE_LOADER_H_ | 5 #ifndef MEDIA_BLINK_ACTIVE_LOADER_H_ |
6 #define MEDIA_BLINK_ACTIVE_LOADER_H_ | 6 #define MEDIA_BLINK_ACTIVE_LOADER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // initial state of |loader| is loading and not deferred. | 24 // initial state of |loader| is loading and not deferred. |
25 explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader); | 25 explicit ActiveLoader(scoped_ptr<blink::WebURLLoader> loader); |
26 ~ActiveLoader(); | 26 ~ActiveLoader(); |
27 | 27 |
28 // Starts or stops deferring the resource load. | 28 // Starts or stops deferring the resource load. |
29 void SetDeferred(bool deferred); | 29 void SetDeferred(bool deferred); |
30 bool deferred() { return deferred_; } | 30 bool deferred() { return deferred_; } |
31 | 31 |
32 private: | 32 private: |
33 friend class BufferedDataSourceTest; | 33 friend class BufferedDataSourceTest; |
| 34 friend class MultibufferDataSourceTest; |
34 | 35 |
35 scoped_ptr<blink::WebURLLoader> loader_; | 36 scoped_ptr<blink::WebURLLoader> loader_; |
36 bool deferred_; | 37 bool deferred_; |
37 | 38 |
38 DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader); | 39 DISALLOW_IMPLICIT_CONSTRUCTORS(ActiveLoader); |
39 }; | 40 }; |
40 | 41 |
41 } // namespace media | 42 } // namespace media |
42 | 43 |
43 #endif // MEDIA_BLINK_ACTIVE_LOADER_H_ | 44 #endif // MEDIA_BLINK_ACTIVE_LOADER_H_ |
OLD | NEW |