Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: net/spdy/spdy_session.h

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
19 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/base/request_priority.h" 21 #include "net/base/request_priority.h"
22 #include "net/base/ssl_client_cert_type.h"
23 #include "net/base/ssl_config_service.h"
24 #include "net/socket/client_socket_handle.h" 22 #include "net/socket/client_socket_handle.h"
25 #include "net/socket/ssl_client_socket.h" 23 #include "net/socket/ssl_client_socket.h"
26 #include "net/socket/stream_socket.h" 24 #include "net/socket/stream_socket.h"
27 #include "net/spdy/buffered_spdy_framer.h" 25 #include "net/spdy/buffered_spdy_framer.h"
28 #include "net/spdy/spdy_credential_state.h" 26 #include "net/spdy/spdy_credential_state.h"
29 #include "net/spdy/spdy_header_block.h" 27 #include "net/spdy/spdy_header_block.h"
30 #include "net/spdy/spdy_io_buffer.h" 28 #include "net/spdy/spdy_io_buffer.h"
31 #include "net/spdy/spdy_protocol.h" 29 #include "net/spdy/spdy_protocol.h"
32 #include "net/spdy/spdy_session_pool.h" 30 #include "net/spdy/spdy_session_pool.h"
31 #include "net/ssl/ssl_client_cert_type.h"
32 #include "net/ssl/ssl_config_service.h"
33 33
34 namespace net { 34 namespace net {
35 35
36 // This is somewhat arbitrary and not really fixed, but it will always work 36 // This is somewhat arbitrary and not really fixed, but it will always work
37 // reasonably with ethernet. Chop the world into 2-packet chunks. This is 37 // reasonably with ethernet. Chop the world into 2-packet chunks. This is
38 // somewhat arbitrary, but is reasonably small and ensures that we elicit 38 // somewhat arbitrary, but is reasonably small and ensures that we elicit
39 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). 39 // ACKs quickly from TCP (because TCP tries to only ACK every other packet).
40 const int kMss = 1430; 40 const int kMss = 1430;
41 // The 8 is the size of the SPDY frame header. 41 // The 8 is the size of the SPDY frame header.
42 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8; 42 const int kMaxSpdyFrameChunkSize = (2 * kMss) - 8;
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 // This SPDY proxy is allowed to push resources from origins that are 873 // This SPDY proxy is allowed to push resources from origins that are
874 // different from those of their associated streams. 874 // different from those of their associated streams.
875 HostPortPair trusted_spdy_proxy_; 875 HostPortPair trusted_spdy_proxy_;
876 876
877 TimeFunc time_func_; 877 TimeFunc time_func_;
878 }; 878 };
879 879
880 } // namespace net 880 } // namespace net
881 881
882 #endif // NET_SPDY_SPDY_SESSION_H_ 882 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698