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

Side by Side Diff: net/socket/ssl_server_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: rebase on master 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVER_SOCKET_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 // See comments on CreateSSLServerSocket for details of how these 27 // See comments on CreateSSLServerSocket for details of how these
28 // parameters are used. 28 // parameters are used.
29 SSLServerSocketOpenSSL(scoped_ptr<StreamSocket> socket, 29 SSLServerSocketOpenSSL(scoped_ptr<StreamSocket> socket,
30 scoped_refptr<X509Certificate> certificate, 30 scoped_refptr<X509Certificate> certificate,
31 crypto::RSAPrivateKey* key, 31 crypto::RSAPrivateKey* key,
32 const SSLConfig& ssl_config); 32 const SSLConfig& ssl_config);
33 virtual ~SSLServerSocketOpenSSL(); 33 virtual ~SSLServerSocketOpenSSL();
34 34
35 // SSLServerSocket interface. 35 // SSLServerSocket interface.
36 virtual int Handshake(const CompletionCallback& callback) OVERRIDE; 36 virtual int Handshake(const CompletionCallback& callback) override;
37 37
38 // SSLSocket interface. 38 // SSLSocket interface.
39 virtual int ExportKeyingMaterial(const base::StringPiece& label, 39 virtual int ExportKeyingMaterial(const base::StringPiece& label,
40 bool has_context, 40 bool has_context,
41 const base::StringPiece& context, 41 const base::StringPiece& context,
42 unsigned char* out, 42 unsigned char* out,
43 unsigned int outlen) OVERRIDE; 43 unsigned int outlen) override;
44 virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE; 44 virtual int GetTLSUniqueChannelBinding(std::string* out) override;
45 45
46 // Socket interface (via StreamSocket). 46 // Socket interface (via StreamSocket).
47 virtual int Read(IOBuffer* buf, int buf_len, 47 virtual int Read(IOBuffer* buf, int buf_len,
48 const CompletionCallback& callback) OVERRIDE; 48 const CompletionCallback& callback) override;
49 virtual int Write(IOBuffer* buf, int buf_len, 49 virtual int Write(IOBuffer* buf, int buf_len,
50 const CompletionCallback& callback) OVERRIDE; 50 const CompletionCallback& callback) override;
51 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 51 virtual int SetReceiveBufferSize(int32 size) override;
52 virtual int SetSendBufferSize(int32 size) OVERRIDE; 52 virtual int SetSendBufferSize(int32 size) override;
53 53
54 // StreamSocket implementation. 54 // StreamSocket implementation.
55 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 55 virtual int Connect(const CompletionCallback& callback) override;
56 virtual void Disconnect() OVERRIDE; 56 virtual void Disconnect() override;
57 virtual bool IsConnected() const OVERRIDE; 57 virtual bool IsConnected() const override;
58 virtual bool IsConnectedAndIdle() const OVERRIDE; 58 virtual bool IsConnectedAndIdle() const override;
59 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 59 virtual int GetPeerAddress(IPEndPoint* address) const override;
60 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 60 virtual int GetLocalAddress(IPEndPoint* address) const override;
61 virtual const BoundNetLog& NetLog() const OVERRIDE; 61 virtual const BoundNetLog& NetLog() const override;
62 virtual void SetSubresourceSpeculation() OVERRIDE; 62 virtual void SetSubresourceSpeculation() override;
63 virtual void SetOmniboxSpeculation() OVERRIDE; 63 virtual void SetOmniboxSpeculation() override;
64 virtual bool WasEverUsed() const OVERRIDE; 64 virtual bool WasEverUsed() const override;
65 virtual bool UsingTCPFastOpen() const OVERRIDE; 65 virtual bool UsingTCPFastOpen() const override;
66 virtual bool WasNpnNegotiated() const OVERRIDE; 66 virtual bool WasNpnNegotiated() const override;
67 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 67 virtual NextProto GetNegotiatedProtocol() const override;
68 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 68 virtual bool GetSSLInfo(SSLInfo* ssl_info) override;
69 69
70 private: 70 private:
71 enum State { 71 enum State {
72 STATE_NONE, 72 STATE_NONE,
73 STATE_HANDSHAKE, 73 STATE_HANDSHAKE,
74 }; 74 };
75 75
76 void OnSendComplete(int result); 76 void OnSendComplete(int result);
77 void OnRecvComplete(int result); 77 void OnRecvComplete(int result);
78 void OnHandshakeIOComplete(int result); 78 void OnHandshakeIOComplete(int result);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 State next_handshake_state_; 142 State next_handshake_state_;
143 bool completed_handshake_; 143 bool completed_handshake_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketOpenSSL); 145 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketOpenSSL);
146 }; 146 };
147 147
148 } // namespace net 148 } // namespace net
149 149
150 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ 150 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698