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

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

Issue 1696005: Add net log entries that summarize transmit and receive byte counts. (Closed)
Patch Set: More tests and address comments Created 10 years, 8 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
« no previous file with comments | « net/socket/ssl_client_socket_mac.cc ('k') | net/socket/ssl_client_socket_nss.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
11 #include <nss.h> 11 #include <nss.h>
(...skipping 26 matching lines...) Expand all
38 const std::string& hostname, 38 const std::string& hostname,
39 const SSLConfig& ssl_config); 39 const SSLConfig& ssl_config);
40 ~SSLClientSocketNSS(); 40 ~SSLClientSocketNSS();
41 41
42 // SSLClientSocket methods: 42 // SSLClientSocket methods:
43 virtual void GetSSLInfo(SSLInfo* ssl_info); 43 virtual void GetSSLInfo(SSLInfo* ssl_info);
44 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 44 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
45 virtual NextProtoStatus GetNextProto(std::string* proto); 45 virtual NextProtoStatus GetNextProto(std::string* proto);
46 46
47 // ClientSocket methods: 47 // ClientSocket methods:
48 virtual int Connect(CompletionCallback* callback, const BoundNetLog& net_log); 48 virtual int Connect(CompletionCallback* callback);
49 virtual void Disconnect(); 49 virtual void Disconnect();
50 virtual bool IsConnected() const; 50 virtual bool IsConnected() const;
51 virtual bool IsConnectedAndIdle() const; 51 virtual bool IsConnectedAndIdle() const;
52 virtual int GetPeerAddress(AddressList* address) const; 52 virtual int GetPeerAddress(AddressList* address) const;
53 virtual const BoundNetLog& NetLog() const { return net_log_; }
53 54
54 // Socket methods: 55 // Socket methods:
55 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 56 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
56 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 57 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
57 virtual bool SetReceiveBufferSize(int32 size); 58 virtual bool SetReceiveBufferSize(int32 size);
58 virtual bool SetSendBufferSize(int32 size); 59 virtual bool SetSendBufferSize(int32 size);
59 60
60 private: 61 private:
61 // Initializes NSS SSL options. Returns a net error code. 62 // Initializes NSS SSL options. Returns a net error code.
62 int InitializeSSLOptions(); 63 int InitializeSSLOptions();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // 2. Copy client certificates from the "MY" system certificate store into 165 // 2. Copy client certificates from the "MY" system certificate store into
165 // this store so that we can close the system store when we finish 166 // this store so that we can close the system store when we finish
166 // searching for client certificates. 167 // searching for client certificates.
167 static HCERTSTORE cert_store_; 168 static HCERTSTORE cert_store_;
168 #endif 169 #endif
169 }; 170 };
170 171
171 } // namespace net 172 } // namespace net
172 173
173 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 174 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_mac.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698