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

Side by Side Diff: net/socket/ssl_client_socket.h

Issue 8676046: Log server advertised protos (NPN data to NetLog). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/http/http_stream_factory_impl_job.cc ('k') | net/socket/ssl_client_socket.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_SOCKET_SSL_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // *proto is set to the resulting protocol (n.b. that the string may have 118 // *proto is set to the resulting protocol (n.b. that the string may have
119 // embedded NULs). 119 // embedded NULs).
120 // kNextProtoUnsupported: *proto is cleared. 120 // kNextProtoUnsupported: *proto is cleared.
121 // kNextProtoNegotiated: *proto is set to the negotiated protocol. 121 // kNextProtoNegotiated: *proto is set to the negotiated protocol.
122 // kNextProtoNoOverlap: *proto is set to the first protocol in the 122 // kNextProtoNoOverlap: *proto is set to the first protocol in the
123 // supported list. 123 // supported list.
124 virtual NextProtoStatus GetNextProto(std::string* proto) = 0; 124 virtual NextProtoStatus GetNextProto(std::string* proto) = 0;
125 125
126 static NextProto NextProtoFromString(const std::string& proto_string); 126 static NextProto NextProtoFromString(const std::string& proto_string);
127 127
128 static const char* NextProtoStatusToString(
129 const SSLClientSocket::NextProtoStatus status);
130
128 static bool IgnoreCertError(int error, int load_flags); 131 static bool IgnoreCertError(int error, int load_flags);
129 132
130 virtual bool was_npn_negotiated() const; 133 virtual bool was_npn_negotiated() const;
131 134
132 virtual bool set_was_npn_negotiated(bool negotiated); 135 virtual bool set_was_npn_negotiated(bool negotiated);
133 136
134 virtual void UseDNSSEC(DNSSECProvider*) { } 137 virtual void UseDNSSEC(DNSSECProvider*) { }
135 138
136 virtual bool was_spdy_negotiated() const; 139 virtual bool was_spdy_negotiated() const;
137 140
138 virtual bool set_was_spdy_negotiated(bool negotiated); 141 virtual bool set_was_spdy_negotiated(bool negotiated);
139 142
140 private: 143 private:
141 // True if NPN was responded to, independent of selecting SPDY or HTTP. 144 // True if NPN was responded to, independent of selecting SPDY or HTTP.
142 bool was_npn_negotiated_; 145 bool was_npn_negotiated_;
143 // True if NPN successfully negotiated SPDY. 146 // True if NPN successfully negotiated SPDY.
144 bool was_spdy_negotiated_; 147 bool was_spdy_negotiated_;
145 }; 148 };
146 149
147 } // namespace net 150 } // namespace net
148 151
149 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 152 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/socket/ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698