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_H_ | 5 #ifndef NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
6 #define NET_HTTP_BIDIRECTIONAL_STREAM_H_ | 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "net/http/bidirectional_stream_job.h" | 13 #include "net/http/bidirectional_stream_job.h" |
14 #include "net/http/http_stream_factory.h" | 14 #include "net/http/http_stream_factory.h" |
15 #include "net/log/net_log.h" | 15 #include "net/log/net_log.h" |
16 | 16 |
17 #if !defined(ENABLE_BIDIRECTIONAL_STREAM) | |
18 #error Only include this if ENABLE_BIDIRECTIONAL_STREAM is defined | |
Nico
2015/12/30 22:36:21
This is still important, else we'll get linker err
mef
2015/12/30 23:20:46
Ack, I'm open for suggestions.
Nico
2015/12/30 23:25:32
"Don't remove this"? :-) What breaks if you keep i
mef
2015/12/30 23:42:04
Compilation of components/cronet because it has to
mmenke
2016/01/04 18:43:13
The code to declare the build flag is a "public" d
mef
2016/01/04 20:19:54
Hrm, IIUIC move of enable_bidirectional_stream fla
| |
19 #endif | |
20 | |
21 class GURL; | 17 class GURL; |
22 | 18 |
23 namespace net { | 19 namespace net { |
24 | 20 |
25 class HttpAuthController; | 21 class HttpAuthController; |
26 class HttpNetworkSession; | 22 class HttpNetworkSession; |
27 class HttpStream; | 23 class HttpStream; |
28 class HttpStreamRequest; | 24 class HttpStreamRequest; |
29 class IOBuffer; | 25 class IOBuffer; |
30 class ProxyInfo; | 26 class ProxyInfo; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 // The underlying BidirectioanlStreamJob used for this stream. It is non-NULL, | 198 // The underlying BidirectioanlStreamJob used for this stream. It is non-NULL, |
203 // if the |stream_request_| successfully finishes. | 199 // if the |stream_request_| successfully finishes. |
204 scoped_ptr<BidirectionalStreamJob> stream_job_; | 200 scoped_ptr<BidirectionalStreamJob> stream_job_; |
205 | 201 |
206 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); | 202 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); |
207 }; | 203 }; |
208 | 204 |
209 } // namespace net | 205 } // namespace net |
210 | 206 |
211 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ | 207 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
OLD | NEW |