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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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
« no previous file with comments | « net/socket/ssl_client_socket_nss.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const SSLConfig& ssl_config, 52 const SSLConfig& ssl_config,
53 const SSLClientSocketContext& context); 53 const SSLClientSocketContext& context);
54 virtual ~SSLClientSocketOpenSSL(); 54 virtual ~SSLClientSocketOpenSSL();
55 55
56 const HostPortPair& host_and_port() const { return host_and_port_; } 56 const HostPortPair& host_and_port() const { return host_and_port_; }
57 const std::string& ssl_session_cache_shard() const { 57 const std::string& ssl_session_cache_shard() const {
58 return ssl_session_cache_shard_; 58 return ssl_session_cache_shard_;
59 } 59 }
60 60
61 // SSLClientSocket implementation. 61 // SSLClientSocket implementation.
62 virtual std::string GetSessionCacheKey() const OVERRIDE; 62 virtual std::string GetSessionCacheKey() const override;
63 virtual bool InSessionCache() const OVERRIDE; 63 virtual bool InSessionCache() const override;
64 virtual void SetHandshakeCompletionCallback( 64 virtual void SetHandshakeCompletionCallback(
65 const base::Closure& callback) OVERRIDE; 65 const base::Closure& callback) override;
66 virtual void GetSSLCertRequestInfo( 66 virtual void GetSSLCertRequestInfo(
67 SSLCertRequestInfo* cert_request_info) OVERRIDE; 67 SSLCertRequestInfo* cert_request_info) override;
68 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE; 68 virtual NextProtoStatus GetNextProto(std::string* proto) override;
69 virtual ChannelIDService* GetChannelIDService() const OVERRIDE; 69 virtual ChannelIDService* GetChannelIDService() const override;
70 70
71 // SSLSocket implementation. 71 // SSLSocket implementation.
72 virtual int ExportKeyingMaterial(const base::StringPiece& label, 72 virtual int ExportKeyingMaterial(const base::StringPiece& label,
73 bool has_context, 73 bool has_context,
74 const base::StringPiece& context, 74 const base::StringPiece& context,
75 unsigned char* out, 75 unsigned char* out,
76 unsigned int outlen) OVERRIDE; 76 unsigned int outlen) override;
77 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; 77 virtual int GetTLSUniqueChannelBinding(std::string* out) override;
78 78
79 // StreamSocket implementation. 79 // StreamSocket implementation.
80 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 80 virtual int Connect(const CompletionCallback& callback) override;
81 virtual void Disconnect() OVERRIDE; 81 virtual void Disconnect() override;
82 virtual bool IsConnected() const OVERRIDE; 82 virtual bool IsConnected() const override;
83 virtual bool IsConnectedAndIdle() const OVERRIDE; 83 virtual bool IsConnectedAndIdle() const override;
84 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 84 virtual int GetPeerAddress(IPEndPoint* address) const override;
85 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 85 virtual int GetLocalAddress(IPEndPoint* address) const override;
86 virtual const BoundNetLog& NetLog() const OVERRIDE; 86 virtual const BoundNetLog& NetLog() const override;
87 virtual void SetSubresourceSpeculation() OVERRIDE; 87 virtual void SetSubresourceSpeculation() override;
88 virtual void SetOmniboxSpeculation() OVERRIDE; 88 virtual void SetOmniboxSpeculation() override;
89 virtual bool WasEverUsed() const OVERRIDE; 89 virtual bool WasEverUsed() const override;
90 virtual bool UsingTCPFastOpen() const OVERRIDE; 90 virtual bool UsingTCPFastOpen() const override;
91 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 91 virtual bool GetSSLInfo(SSLInfo* ssl_info) override;
92 92
93 // Socket implementation. 93 // Socket implementation.
94 virtual int Read(IOBuffer* buf, int buf_len, 94 virtual int Read(IOBuffer* buf, int buf_len,
95 const CompletionCallback& callback) OVERRIDE; 95 const CompletionCallback& callback) override;
96 virtual int Write(IOBuffer* buf, int buf_len, 96 virtual int Write(IOBuffer* buf, int buf_len,
97 const CompletionCallback& callback) OVERRIDE; 97 const CompletionCallback& callback) override;
98 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 98 virtual int SetReceiveBufferSize(int32 size) override;
99 virtual int SetSendBufferSize(int32 size) OVERRIDE; 99 virtual int SetSendBufferSize(int32 size) override;
100 100
101 protected: 101 protected:
102 // SSLClientSocket implementation. 102 // SSLClientSocket implementation.
103 virtual scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() 103 virtual scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
104 const OVERRIDE; 104 const override;
105 105
106 private: 106 private:
107 class PeerCertificateChain; 107 class PeerCertificateChain;
108 class SSLContext; 108 class SSLContext;
109 friend class SSLClientSocket; 109 friend class SSLClientSocket;
110 friend class SSLContext; 110 friend class SSLContext;
111 111
112 int Init(); 112 int Init();
113 void DoReadCallback(int result); 113 void DoReadCallback(int result);
114 void DoWriteCallback(int result); 114 void DoWriteCallback(int result);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // pinning failure. It is a (somewhat) human-readable string. 301 // pinning failure. It is a (somewhat) human-readable string.
302 std::string pinning_failure_log_; 302 std::string pinning_failure_log_;
303 303
304 BoundNetLog net_log_; 304 BoundNetLog net_log_;
305 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 305 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
306 }; 306 };
307 307
308 } // namespace net 308 } // namespace net
309 309
310 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 310 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.h ('k') | net/socket/ssl_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698