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_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
22 #include "net/base/request_priority.h" | 22 #include "net/base/request_priority.h" |
23 #include "net/base/ssl_client_cert_type.h" | |
24 #include "net/base/ssl_config_service.h" | |
25 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
26 #include "net/socket/ssl_client_socket.h" | 24 #include "net/socket/ssl_client_socket.h" |
27 #include "net/socket/stream_socket.h" | 25 #include "net/socket/stream_socket.h" |
28 #include "net/spdy/buffered_spdy_framer.h" | 26 #include "net/spdy/buffered_spdy_framer.h" |
29 #include "net/spdy/spdy_credential_state.h" | 27 #include "net/spdy/spdy_credential_state.h" |
30 #include "net/spdy/spdy_header_block.h" | 28 #include "net/spdy/spdy_header_block.h" |
31 #include "net/spdy/spdy_io_buffer.h" | 29 #include "net/spdy/spdy_io_buffer.h" |
32 #include "net/spdy/spdy_protocol.h" | 30 #include "net/spdy/spdy_protocol.h" |
33 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
| 32 #include "net/ssl/ssl_client_cert_type.h" |
| 33 #include "net/ssl/ssl_config_service.h" |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 | 36 |
37 // This is somewhat arbitrary and not really fixed, but it will always work | 37 // This is somewhat arbitrary and not really fixed, but it will always work |
38 // reasonably with ethernet. Chop the world into 2-packet chunks. This is | 38 // reasonably with ethernet. Chop the world into 2-packet chunks. This is |
39 // somewhat arbitrary, but is reasonably small and ensures that we elicit | 39 // somewhat arbitrary, but is reasonably small and ensures that we elicit |
40 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). | 40 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). |
41 const int kMss = 1430; | 41 const int kMss = 1430; |
42 // The 8 is the size of the SPDY frame header. | 42 // The 8 is the size of the SPDY frame header. |
43 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8; | 43 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8; |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 // This SPDY proxy is allowed to push resources from origins that are | 880 // This SPDY proxy is allowed to push resources from origins that are |
881 // different from those of their associated streams. | 881 // different from those of their associated streams. |
882 HostPortPair trusted_spdy_proxy_; | 882 HostPortPair trusted_spdy_proxy_; |
883 | 883 |
884 TimeFunc time_func_; | 884 TimeFunc time_func_; |
885 }; | 885 }; |
886 | 886 |
887 } // namespace net | 887 } // namespace net |
888 | 888 |
889 #endif // NET_SPDY_SPDY_SESSION_H_ | 889 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |