OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |