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

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

Issue 8401024: Disable SPDY IP pooling for SSL connections with client authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove an incorrect test case Created 9 years, 1 month 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
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <list> 10 #include <list>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Used by SpdySessionPool to initialize with a pre-existing SSL socket. For 92 // Used by SpdySessionPool to initialize with a pre-existing SSL socket. For
93 // testing, setting is_secure to false allows initialization with a 93 // testing, setting is_secure to false allows initialization with a
94 // pre-existing TCP socket. 94 // pre-existing TCP socket.
95 // Returns OK on success, or an error on failure. 95 // Returns OK on success, or an error on failure.
96 net::Error InitializeWithSocket(ClientSocketHandle* connection, 96 net::Error InitializeWithSocket(ClientSocketHandle* connection,
97 bool is_secure, 97 bool is_secure,
98 int certificate_error_code); 98 int certificate_error_code);
99 99
100 // Check to see if this SPDY session can support an additional domain. 100 // Check to see if this SPDY session can support an additional domain.
101 // If the session is un-authenticated, then this call always returns true. 101 // If the session is un-authenticated, then this call always returns true.
102 // For SSL-based sessions, verifies that the certificate in use by this 102 // For SSL-based sessions, verifies that the server certificate in use by
103 // session provides authentication for the domain. 103 // this session provides authentication for the domain and no client
104 // certificate was sent to the original server during the SSL handshake.
104 // NOTE: This function can have false negatives on some platforms. 105 // NOTE: This function can have false negatives on some platforms.
106 // TODO(wtc): rename this function and the Net.SpdyIPPoolDomainMatch
107 // histogram because this function does more than verifying domain
108 // authentication now.
105 bool VerifyDomainAuthentication(const std::string& domain); 109 bool VerifyDomainAuthentication(const std::string& domain);
106 110
107 // Send the SYN frame for |stream_id|. This also sends PING message to check 111 // Send the SYN frame for |stream_id|. This also sends PING message to check
108 // the status of the connection. 112 // the status of the connection.
109 int WriteSynStream( 113 int WriteSynStream(
110 spdy::SpdyStreamId stream_id, 114 spdy::SpdyStreamId stream_id,
111 RequestPriority priority, 115 RequestPriority priority,
112 spdy::SpdyControlFlags flags, 116 spdy::SpdyControlFlags flags,
113 const linked_ptr<spdy::SpdyHeaderBlock>& headers); 117 const linked_ptr<spdy::SpdyHeaderBlock>& headers);
114 118
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 const spdy::SpdyControlFlags flags_; 612 const spdy::SpdyControlFlags flags_;
609 const spdy::SpdyStreamId id_; 613 const spdy::SpdyStreamId id_;
610 const spdy::SpdyStreamId associated_stream_; 614 const spdy::SpdyStreamId associated_stream_;
611 615
612 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); 616 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter);
613 }; 617 };
614 618
615 } // namespace net 619 } // namespace net
616 620
617 #endif // NET_SPDY_SPDY_SESSION_H_ 621 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698