OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NET_FILTER_SOURCE_STREAM_H_ | 5 #ifndef NET_FILTER_SOURCE_STREAM_H_ |
6 #define NET_FILTER_SOURCE_STREAM_H_ | 6 #define NET_FILTER_SOURCE_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "net/base/net_export.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 class IOBuffer; | 19 class IOBuffer; |
19 | 20 |
20 // The SourceStream class implements a producer of bytes. | 21 // The SourceStream class implements a producer of bytes. |
21 class NET_EXPORT_PRIVATE SourceStream { | 22 class NET_EXPORT_PRIVATE SourceStream { |
22 public: | 23 public: |
23 enum SourceType { | 24 enum SourceType { |
24 #define SOURCE_STREAM_TYPE(label) TYPE_##label, | 25 #define SOURCE_STREAM_TYPE(label) TYPE_##label, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 58 |
58 private: | 59 private: |
59 SourceType type_; | 60 SourceType type_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(SourceStream); | 62 DISALLOW_COPY_AND_ASSIGN(SourceStream); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace net | 65 } // namespace net |
65 | 66 |
66 #endif // NET_FILTER_SOURCE_STREAM_H_ | 67 #endif // NET_FILTER_SOURCE_STREAM_H_ |
OLD | NEW |