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 #ifndef NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ | 5 #ifndef NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ |
6 #define NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ | 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 13 #include "net/net_features.h" |
13 #include "net/socket/next_proto.h" | 14 #include "net/socket/next_proto.h" |
14 | 15 |
15 #if !defined(ENABLE_BIDIRECTIONAL_STREAM) | 16 #if !BUILDFLAG(ENABLE_BIDIRECTIONAL_STREAM) |
16 #error Only include this if ENABLE_BIDIRECTIONAL_STREAM is defined | 17 #error Only include this if ENABLE_BIDIRECTIONAL_STREAM is defined |
17 #endif | 18 #endif |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class Timer; | 21 class Timer; |
21 } // namespace base | 22 } // namespace base |
22 | 23 |
23 namespace net { | 24 namespace net { |
24 | 25 |
25 class BoundNetLog; | 26 class BoundNetLog; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // not associated with any stream, and are not included in this value. | 131 // not associated with any stream, and are not included in this value. |
131 virtual int64_t GetTotalSentBytes() const = 0; | 132 virtual int64_t GetTotalSentBytes() const = 0; |
132 | 133 |
133 private: | 134 private: |
134 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamJob); | 135 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamJob); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace net | 138 } // namespace net |
138 | 139 |
139 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ | 140 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_JOB_H_ |
OLD | NEW |