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 NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
14 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
15 #include "net/http/http_auth.h" | 15 #include "net/http/http_auth.h" |
16 #include "net/http/http_auth_controller.h" | 16 #include "net/http/http_auth_controller.h" |
17 #include "net/http/http_request_info.h" | 17 #include "net/http/http_request_info.h" |
18 #include "net/http/http_stream_factory_impl.h" | 18 #include "net/http/http_stream_factory_impl.h" |
19 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
| 20 #include "net/net_features.h" |
20 #include "net/proxy/proxy_service.h" | 21 #include "net/proxy/proxy_service.h" |
21 #include "net/quic/quic_stream_factory.h" | 22 #include "net/quic/quic_stream_factory.h" |
22 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
23 #include "net/socket/client_socket_pool_manager.h" | 24 #include "net/socket/client_socket_pool_manager.h" |
24 #include "net/socket/ssl_client_socket.h" | 25 #include "net/socket/ssl_client_socket.h" |
25 #include "net/spdy/spdy_session_key.h" | 26 #include "net/spdy/spdy_session_key.h" |
26 #include "net/ssl/ssl_config_service.h" | 27 #include "net/ssl/ssl_config_service.h" |
27 | 28 |
28 namespace net { | 29 namespace net { |
29 | 30 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 373 |
373 scoped_refptr<HttpAuthController> | 374 scoped_refptr<HttpAuthController> |
374 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS]; | 375 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS]; |
375 | 376 |
376 // True when the tunnel is in the process of being established - we can't | 377 // True when the tunnel is in the process of being established - we can't |
377 // read from the socket until the tunnel is done. | 378 // read from the socket until the tunnel is done. |
378 bool establishing_tunnel_; | 379 bool establishing_tunnel_; |
379 | 380 |
380 scoped_ptr<HttpStream> stream_; | 381 scoped_ptr<HttpStream> stream_; |
381 scoped_ptr<WebSocketHandshakeStreamBase> websocket_stream_; | 382 scoped_ptr<WebSocketHandshakeStreamBase> websocket_stream_; |
382 #if defined(ENABLE_BIDIRECTIONAL_STREAM) | 383 #if BUILDFLAG(ENABLE_BIDIRECTIONAL_STREAM) |
383 scoped_ptr<BidirectionalStreamJob> bidirectional_stream_job_; | 384 scoped_ptr<BidirectionalStreamJob> bidirectional_stream_job_; |
384 #endif | 385 #endif |
385 | 386 |
386 // True if we negotiated NPN. | 387 // True if we negotiated NPN. |
387 bool was_npn_negotiated_; | 388 bool was_npn_negotiated_; |
388 | 389 |
389 // Protocol negotiated with the server. | 390 // Protocol negotiated with the server. |
390 NextProto protocol_negotiated_; | 391 NextProto protocol_negotiated_; |
391 | 392 |
392 // 0 if we're not preconnecting. Otherwise, the number of streams to | 393 // 0 if we're not preconnecting. Otherwise, the number of streams to |
(...skipping 18 matching lines...) Expand all Loading... |
411 bool for_bidirectional_; | 412 bool for_bidirectional_; |
412 | 413 |
413 base::WeakPtrFactory<Job> ptr_factory_; | 414 base::WeakPtrFactory<Job> ptr_factory_; |
414 | 415 |
415 DISALLOW_COPY_AND_ASSIGN(Job); | 416 DISALLOW_COPY_AND_ASSIGN(Job); |
416 }; | 417 }; |
417 | 418 |
418 } // namespace net | 419 } // namespace net |
419 | 420 |
420 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 421 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
OLD | NEW |