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

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

Issue 7065045: Fix nits related to SSLHostInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_host_info.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_HOST_INFO_H_ 5 #ifndef NET_SOCKET_SSL_HOST_INFO_H_
6 #define NET_SOCKET_SSL_HOST_INFO_H_ 6 #define NET_SOCKET_SSL_HOST_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 private: 73 private:
74 DISALLOW_COPY_AND_ASSIGN(State); 74 DISALLOW_COPY_AND_ASSIGN(State);
75 }; 75 };
76 76
77 // Once the data is ready, it can be read using the following members. These 77 // Once the data is ready, it can be read using the following members. These
78 // members can then be updated before calling |Persist|. 78 // members can then be updated before calling |Persist|.
79 const State& state() const; 79 const State& state() const;
80 State* mutable_state(); 80 State* mutable_state();
81 81
82 // If |cert_valid()| returns true, then this contains the result of verifying 82 // If WaitForCertVerification reports the certificate verification has
83 // the certificate. 83 // completed, then this contains the result of verifying the certificate.
84 const CertVerifyResult& cert_verify_result() const; 84 const CertVerifyResult& cert_verify_result() const;
85 85
86 // WaitForCertVerification returns ERR_IO_PENDING if the certificate chain in 86 // WaitForCertVerification returns ERR_IO_PENDING if the certificate chain in
87 // |state().certs| is still being validated and arranges for the given 87 // |state().certs| is still being validated and arranges for the given
88 // callback to be called when the verification completes. If the verification 88 // callback to be called when the verification completes. If the verification
89 // has already finished then WaitForCertVerification returns the result of 89 // has already finished then WaitForCertVerification returns the result of
90 // that verification. 90 // that verification.
91 int WaitForCertVerification(CompletionCallback* callback); 91 int WaitForCertVerification(CompletionCallback* callback);
92 92
93 base::TimeTicks verification_start_time() const { 93 base::TimeTicks verification_start_time() const {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // GetForHost returns a fresh, allocated SSLHostInfo for the given hostname 144 // GetForHost returns a fresh, allocated SSLHostInfo for the given hostname
145 // or NULL on failure. 145 // or NULL on failure.
146 virtual SSLHostInfo* GetForHost(const std::string& hostname, 146 virtual SSLHostInfo* GetForHost(const std::string& hostname,
147 const SSLConfig& ssl_config) = 0; 147 const SSLConfig& ssl_config) = 0;
148 }; 148 };
149 149
150 } // namespace net 150 } // namespace net
151 151
152 #endif // NET_SOCKET_SSL_HOST_INFO_H_ 152 #endif // NET_SOCKET_SSL_HOST_INFO_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_host_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698