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

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

Issue 8817021: Add a new SSLClientSocket::was_origin_cert_sent() method (Closed) Base URL: svn://svn.chromium.org/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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // Get the application level protocol that we negotiated with the server. 117 // Get the application level protocol that we negotiated with the server.
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 // Returns true if connection negotiated the origin bound cert extension.
127 virtual bool WasOriginBoundCertNegotiated() = 0;
wtc 2011/12/06 19:22:11 This method should report the stronger condition:
Ryan Hamilton 2011/12/06 20:03:47 I thought that if the OBC extension was negotiated
128
126 static NextProto NextProtoFromString(const std::string& proto_string); 129 static NextProto NextProtoFromString(const std::string& proto_string);
127 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;
wtc 2011/12/06 19:22:11 Can you find out why was_npn_negotiated() and was_
Ryan Hamilton 2011/12/06 20:03:47 This is because these methods are simple getters f
wtc 2011/12/06 20:47:03 I just wanted you to find out why was_npn_negotiat
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

Powered by Google App Engine
This is Rietveld 408576698