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

Side by Side Diff: net/socket/unix_domain_client_socket_posix.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
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_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 5 #ifndef NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 6 #define NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 34
35 virtual ~UnixDomainClientSocket(); 35 virtual ~UnixDomainClientSocket();
36 36
37 // Fills |address| with |socket_path| and its length. For Android or Linux 37 // Fills |address| with |socket_path| and its length. For Android or Linux
38 // platform, this supports abstract namespaces. 38 // platform, this supports abstract namespaces.
39 static bool FillAddress(const std::string& socket_path, 39 static bool FillAddress(const std::string& socket_path,
40 bool use_abstract_namespace, 40 bool use_abstract_namespace,
41 SockaddrStorage* address); 41 SockaddrStorage* address);
42 42
43 // StreamSocket implementation. 43 // StreamSocket implementation.
44 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 44 virtual int Connect(const CompletionCallback& callback) override;
45 virtual void Disconnect() OVERRIDE; 45 virtual void Disconnect() override;
46 virtual bool IsConnected() const OVERRIDE; 46 virtual bool IsConnected() const override;
47 virtual bool IsConnectedAndIdle() const OVERRIDE; 47 virtual bool IsConnectedAndIdle() const override;
48 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; 48 virtual int GetPeerAddress(IPEndPoint* address) const override;
49 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 49 virtual int GetLocalAddress(IPEndPoint* address) const override;
50 virtual const BoundNetLog& NetLog() const OVERRIDE; 50 virtual const BoundNetLog& NetLog() const override;
51 virtual void SetSubresourceSpeculation() OVERRIDE; 51 virtual void SetSubresourceSpeculation() override;
52 virtual void SetOmniboxSpeculation() OVERRIDE; 52 virtual void SetOmniboxSpeculation() override;
53 virtual bool WasEverUsed() const OVERRIDE; 53 virtual bool WasEverUsed() const override;
54 virtual bool UsingTCPFastOpen() const OVERRIDE; 54 virtual bool UsingTCPFastOpen() const override;
55 virtual bool WasNpnNegotiated() const OVERRIDE; 55 virtual bool WasNpnNegotiated() const override;
56 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; 56 virtual NextProto GetNegotiatedProtocol() const override;
57 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 57 virtual bool GetSSLInfo(SSLInfo* ssl_info) override;
58 58
59 // Socket implementation. 59 // Socket implementation.
60 virtual int Read(IOBuffer* buf, int buf_len, 60 virtual int Read(IOBuffer* buf, int buf_len,
61 const CompletionCallback& callback) OVERRIDE; 61 const CompletionCallback& callback) override;
62 virtual int Write(IOBuffer* buf, int buf_len, 62 virtual int Write(IOBuffer* buf, int buf_len,
63 const CompletionCallback& callback) OVERRIDE; 63 const CompletionCallback& callback) override;
64 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 64 virtual int SetReceiveBufferSize(int32 size) override;
65 virtual int SetSendBufferSize(int32 size) OVERRIDE; 65 virtual int SetSendBufferSize(int32 size) override;
66 66
67 // Releases ownership of underlying SocketDescriptor to caller. 67 // Releases ownership of underlying SocketDescriptor to caller.
68 // Internal state is reset so that this object can be used again. 68 // Internal state is reset so that this object can be used again.
69 // Socket must be connected in order to release it. 69 // Socket must be connected in order to release it.
70 SocketDescriptor ReleaseConnectedSocket(); 70 SocketDescriptor ReleaseConnectedSocket();
71 71
72 private: 72 private:
73 const std::string socket_path_; 73 const std::string socket_path_;
74 const bool use_abstract_namespace_; 74 const bool use_abstract_namespace_;
75 scoped_ptr<SocketLibevent> socket_; 75 scoped_ptr<SocketLibevent> socket_;
76 // This net log is just to comply StreamSocket::NetLog(). It throws away 76 // This net log is just to comply StreamSocket::NetLog(). It throws away
77 // everything. 77 // everything.
78 BoundNetLog net_log_; 78 BoundNetLog net_log_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket); 80 DISALLOW_COPY_AND_ASSIGN(UnixDomainClientSocket);
81 }; 81 };
82 82
83 } // namespace net 83 } // namespace net
84 84
85 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_ 85 #endif // NET_SOCKET_UNIX_DOMAIN_CLIENT_SOCKET_POSIX_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_unittest.cc ('k') | net/socket/unix_domain_listen_socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698