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

Side by Side Diff: net/base/ssl_config_service.h

Issue 8156001: net: rework the NPN patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 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
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_BASE_SSL_CONFIG_SERVICE_H_ 5 #ifndef NET_BASE_SSL_CONFIG_SERVICE_H_
6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // True if we should send client_cert to the server. 91 // True if we should send client_cert to the server.
92 bool send_client_cert; 92 bool send_client_cert;
93 93
94 bool verify_ev_cert; // True if we should verify the certificate for EV. 94 bool verify_ev_cert; // True if we should verify the certificate for EV.
95 95
96 bool ssl3_fallback; // True if we are falling back to SSL 3.0 (one still 96 bool ssl3_fallback; // True if we are falling back to SSL 3.0 (one still
97 // needs to clear tls1_enabled). 97 // needs to clear tls1_enabled).
98 98
99 // The list of application level protocols supported. If set, this will 99 // The list of application level protocols supported. If set, this will
100 // enable Next Protocol Negotiation (if supported). This is a list of 8-bit 100 // enable Next Protocol Negotiation (if supported). The order of the
101 // length prefixed strings. The order of the protocols doesn't matter expect 101 // protocols doesn't matter expect for one case: if the server supports Next
102 // for one case: if the server supports Next Protocol Negotiation, but there 102 // Protocol Negotiation, but there is no overlap between the server's and
103 // is no overlap between the server's and client's protocol sets, then the 103 // client's protocol sets, then the first protocol in this list will be
104 // first protocol in this list will be requested by the client. 104 // requested by the client.
105 std::string next_protos; 105 std::vector<std::string> next_protos;
106 106
107 scoped_refptr<X509Certificate> client_cert; 107 scoped_refptr<X509Certificate> client_cert;
108 108
109 scoped_refptr<CRLSet> crl_set; 109 scoped_refptr<CRLSet> crl_set;
110 }; 110 };
111 111
112 // The interface for retrieving the SSL configuration. This interface 112 // The interface for retrieving the SSL configuration. This interface
113 // does not cover setting the SSL configuration, as on some systems, the 113 // does not cover setting the SSL configuration, as on some systems, the
114 // SSLConfigService objects may not have direct access to the configuration, or 114 // SSLConfigService objects may not have direct access to the configuration, or
115 // live longer than the configuration preferences. 115 // live longer than the configuration preferences.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void ProcessConfigUpdate(const SSLConfig& orig_config, 185 void ProcessConfigUpdate(const SSLConfig& orig_config,
186 const SSLConfig& new_config); 186 const SSLConfig& new_config);
187 187
188 private: 188 private:
189 ObserverList<Observer> observer_list_; 189 ObserverList<Observer> observer_list_;
190 }; 190 };
191 191
192 } // namespace net 192 } // namespace net
193 193
194 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ 194 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698