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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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_mac.h ('k') | net/socket/ssl_client_socket_pool.h » ('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_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const HostPortPair& host_and_port, 53 const HostPortPair& host_and_port,
54 const SSLConfig& ssl_config, 54 const SSLConfig& ssl_config,
55 SSLHostInfo* ssl_host_info, 55 SSLHostInfo* ssl_host_info,
56 const SSLClientSocketContext& context); 56 const SSLClientSocketContext& context);
57 virtual ~SSLClientSocketNSS(); 57 virtual ~SSLClientSocketNSS();
58 58
59 // For tests 59 // For tests
60 static void ClearSessionCache(); 60 static void ClearSessionCache();
61 61
62 // SSLClientSocket methods: 62 // SSLClientSocket methods:
63 virtual void GetSSLInfo(SSLInfo* ssl_info); 63 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
64 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 64 virtual void GetSSLCertRequestInfo(
65 SSLCertRequestInfo* cert_request_info) OVERRIDE;
65 virtual int ExportKeyingMaterial(const base::StringPiece& label, 66 virtual int ExportKeyingMaterial(const base::StringPiece& label,
66 const base::StringPiece& context, 67 const base::StringPiece& context,
67 unsigned char *out, 68 unsigned char *out,
68 unsigned int outlen); 69 unsigned int outlen) OVERRIDE;
69 virtual NextProtoStatus GetNextProto(std::string* proto); 70 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE;
70 71
71 // StreamSocket methods: 72 // StreamSocket methods:
72 virtual int Connect(OldCompletionCallback* callback); 73 virtual int Connect(OldCompletionCallback* callback) OVERRIDE;
73 virtual void Disconnect(); 74 virtual void Disconnect() OVERRIDE;
74 virtual bool IsConnected() const; 75 virtual bool IsConnected() const OVERRIDE;
75 virtual bool IsConnectedAndIdle() const; 76 virtual bool IsConnectedAndIdle() const OVERRIDE;
76 virtual int GetPeerAddress(AddressList* address) const; 77 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
77 virtual int GetLocalAddress(IPEndPoint* address) const; 78 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
78 virtual const BoundNetLog& NetLog() const; 79 virtual const BoundNetLog& NetLog() const OVERRIDE;
79 virtual void SetSubresourceSpeculation(); 80 virtual void SetSubresourceSpeculation() OVERRIDE;
80 virtual void SetOmniboxSpeculation(); 81 virtual void SetOmniboxSpeculation() OVERRIDE;
81 virtual bool WasEverUsed() const; 82 virtual bool WasEverUsed() const OVERRIDE;
82 virtual bool UsingTCPFastOpen() const; 83 virtual bool UsingTCPFastOpen() const OVERRIDE;
83 virtual int64 NumBytesRead() const; 84 virtual int64 NumBytesRead() const OVERRIDE;
84 virtual base::TimeDelta GetConnectTimeMicros() const; 85 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
85 86
86 // Socket methods: 87 // Socket methods:
87 virtual int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); 88 virtual int Read(IOBuffer* buf,
88 virtual int Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback) ; 89 int buf_len,
89 virtual bool SetReceiveBufferSize(int32 size); 90 OldCompletionCallback* callback) OVERRIDE;
90 virtual bool SetSendBufferSize(int32 size); 91 virtual int Write(IOBuffer* buf,
92 int buf_len,
93 OldCompletionCallback* callback) OVERRIDE;
94 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
95 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
91 96
92 private: 97 private:
93 enum State { 98 enum State {
94 STATE_NONE, 99 STATE_NONE,
95 STATE_LOAD_SSL_HOST_INFO, 100 STATE_LOAD_SSL_HOST_INFO,
96 STATE_HANDSHAKE, 101 STATE_HANDSHAKE,
97 STATE_GET_OB_CERT_COMPLETE, 102 STATE_GET_OB_CERT_COMPLETE,
98 STATE_VERIFY_DNSSEC, 103 STATE_VERIFY_DNSSEC,
99 STATE_VERIFY_CERT, 104 STATE_VERIFY_CERT,
100 STATE_VERIFY_CERT_COMPLETE, 105 STATE_VERIFY_CERT_COMPLETE,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // Added the following code Debugging in release mode. 306 // Added the following code Debugging in release mode.
302 mutable base::Lock lock_; 307 mutable base::Lock lock_;
303 // This is mutable so that CalledOnValidThread can set it. 308 // This is mutable so that CalledOnValidThread can set it.
304 // It's guarded by |lock_|. 309 // It's guarded by |lock_|.
305 mutable base::PlatformThreadId valid_thread_id_; 310 mutable base::PlatformThreadId valid_thread_id_;
306 }; 311 };
307 312
308 } // namespace net 313 } // namespace net
309 314
310 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 315 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_mac.h ('k') | net/socket/ssl_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698