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

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

Issue 7401003: Don't use X509Certificate in SSLConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 5 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_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <certt.h> 9 #include <certt.h>
10 #include <keyt.h> 10 #include <keyt.h>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 int Init(); 97 int Init();
98 98
99 // Initializes NSS SSL options. Returns a net error code. 99 // Initializes NSS SSL options. Returns a net error code.
100 int InitializeSSLOptions(); 100 int InitializeSSLOptions();
101 101
102 // Initializes the socket peer name in SSL. Returns a net error code. 102 // Initializes the socket peer name in SSL. Returns a net error code.
103 int InitializeSSLPeerName(); 103 int InitializeSSLPeerName();
104 104
105 X509Certificate* UpdateServerCert(); 105 void UpdateServerCert();
106 void UpdateConnectionStatus(); 106 void UpdateConnectionStatus();
107 void DoReadCallback(int result); 107 void DoReadCallback(int result);
108 void DoWriteCallback(int result); 108 void DoWriteCallback(int result);
109 void DoConnectCallback(int result); 109 void DoConnectCallback(int result);
110 void OnHandshakeIOComplete(int result); 110 void OnHandshakeIOComplete(int result);
111 void OnSendComplete(int result); 111 void OnSendComplete(int result);
112 void OnRecvComplete(int result); 112 void OnRecvComplete(int result);
113 113
114 int DoHandshakeLoop(int last_io_result); 114 int DoHandshakeLoop(int last_io_result);
115 int DoReadLoop(int result); 115 int DoReadLoop(int result);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Added the following code Debugging in release mode. 254 // Added the following code Debugging in release mode.
255 mutable base::Lock lock_; 255 mutable base::Lock lock_;
256 // This is mutable so that CalledOnValidThread can set it. 256 // This is mutable so that CalledOnValidThread can set it.
257 // It's guarded by |lock_|. 257 // It's guarded by |lock_|.
258 mutable base::PlatformThreadId valid_thread_id_; 258 mutable base::PlatformThreadId valid_thread_id_;
259 }; 259 };
260 260
261 } // namespace net 261 } // namespace net
262 262
263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698