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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_spdy3_unittest.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) 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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Check if a stream is active. 148 // Check if a stream is active.
149 bool IsStreamActive(SpdyStreamId stream_id) const; 149 bool IsStreamActive(SpdyStreamId stream_id) const;
150 150
151 // The LoadState is used for informing the user of the current network 151 // The LoadState is used for informing the user of the current network
152 // status, such as "resolving host", "connecting", etc. 152 // status, such as "resolving host", "connecting", etc.
153 LoadState GetLoadState() const; 153 LoadState GetLoadState() const;
154 154
155 // Fills SSL info in |ssl_info| and returns true when SSL is in use. 155 // Fills SSL info in |ssl_info| and returns true when SSL is in use.
156 bool GetSSLInfo(SSLInfo* ssl_info, 156 bool GetSSLInfo(SSLInfo* ssl_info,
157 bool* was_npn_negotiated, 157 bool* was_npn_negotiated,
158 SSLClientSocket::NextProto* protocol_negotiated); 158 NextProto* protocol_negotiated);
159 159
160 // Fills SSL Certificate Request info |cert_request_info| and returns 160 // Fills SSL Certificate Request info |cert_request_info| and returns
161 // true when SSL is in use. 161 // true when SSL is in use.
162 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 162 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
163 163
164 // Returns the ServerBoundCertService used by this Socket, or NULL 164 // Returns the ServerBoundCertService used by this Socket, or NULL
165 // if server bound certs are not supported in this session. 165 // if server bound certs are not supported in this session.
166 ServerBoundCertService* GetServerBoundCertService() const; 166 ServerBoundCertService* GetServerBoundCertService() const;
167 167
168 // Returns the type of the domain bound cert that was sent, or 168 // Returns the type of the domain bound cert that was sent, or
169 // CLIENT_CERT_INVALID_TYPE if none was sent. 169 // CLIENT_CERT_INVALID_TYPE if none was sent.
170 SSLClientCertType GetDomainBoundCertType() const; 170 SSLClientCertType GetDomainBoundCertType() const;
171 171
172 // Reset all static settings to initialized values. Used to init test suite. 172 // Reset all static settings to initialized values. Used to init test suite.
173 static void ResetStaticSettingsToInit(); 173 static void ResetStaticSettingsToInit();
174 174
175 // Specify the SPDY protocol to be used for SPDY session which do not use NPN 175 // Specify the SPDY protocol to be used for SPDY session which do not use NPN
176 // to negotiate a particular protocol. 176 // to negotiate a particular protocol.
177 static void set_default_protocol(SSLClientSocket::NextProto default_protocol); 177 static void set_default_protocol(NextProto default_protocol);
178 178
179 // Sets the max concurrent streams per session, as a ceiling on any server 179 // Sets the max concurrent streams per session, as a ceiling on any server
180 // specific SETTINGS value. 180 // specific SETTINGS value.
181 static void set_max_concurrent_streams(size_t value); 181 static void set_max_concurrent_streams(size_t value);
182 182
183 // Enable sending of PING frame with each request. 183 // Enable sending of PING frame with each request.
184 static void set_enable_ping_based_connection_checking(bool enable); 184 static void set_enable_ping_based_connection_checking(bool enable);
185 185
186 // The initial max concurrent streams per session, can be overridden by the 186 // The initial max concurrent streams per session, can be overridden by the
187 // server via SETTINGS. 187 // server via SETTINGS.
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 688
689 const int status_; 689 const int status_;
690 const std::string description_; 690 const std::string description_;
691 691
692 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); 692 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter);
693 }; 693 };
694 694
695 } // namespace net 695 } // namespace net
696 696
697 #endif // NET_SPDY_SPDY_SESSION_H_ 697 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698