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

Side by Side Diff: net/socket/tcp_listen_socket.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/tcp_client_socket.h ('k') | net/socket/tcp_listen_socket_unittest.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_TCP_LISTEN_SOCKET_H_ 5 #ifndef NET_SOCKET_TCP_LISTEN_SOCKET_H_
6 #define NET_SOCKET_TCP_LISTEN_SOCKET_H_ 6 #define NET_SOCKET_TCP_LISTEN_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 static SocketDescriptor CreateAndBind(const std::string& ip, int port); 27 static SocketDescriptor CreateAndBind(const std::string& ip, int port);
28 28
29 // Get raw TCP socket descriptor bound to ip and return port it is bound to. 29 // Get raw TCP socket descriptor bound to ip and return port it is bound to.
30 static SocketDescriptor CreateAndBindAnyPort(const std::string& ip, 30 static SocketDescriptor CreateAndBindAnyPort(const std::string& ip,
31 int* port); 31 int* port);
32 32
33 protected: 33 protected:
34 TCPListenSocket(SocketDescriptor s, StreamListenSocket::Delegate* del); 34 TCPListenSocket(SocketDescriptor s, StreamListenSocket::Delegate* del);
35 35
36 // Implements StreamListenSocket::Accept. 36 // Implements StreamListenSocket::Accept.
37 virtual void Accept() OVERRIDE; 37 virtual void Accept() override;
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(TCPListenSocket); 40 DISALLOW_COPY_AND_ASSIGN(TCPListenSocket);
41 }; 41 };
42 42
43 // Factory that can be used to instantiate TCPListenSocket. 43 // Factory that can be used to instantiate TCPListenSocket.
44 class NET_EXPORT TCPListenSocketFactory : public StreamListenSocketFactory { 44 class NET_EXPORT TCPListenSocketFactory : public StreamListenSocketFactory {
45 public: 45 public:
46 TCPListenSocketFactory(const std::string& ip, int port); 46 TCPListenSocketFactory(const std::string& ip, int port);
47 virtual ~TCPListenSocketFactory(); 47 virtual ~TCPListenSocketFactory();
48 48
49 // StreamListenSocketFactory overrides. 49 // StreamListenSocketFactory overrides.
50 virtual scoped_ptr<StreamListenSocket> CreateAndListen( 50 virtual scoped_ptr<StreamListenSocket> CreateAndListen(
51 StreamListenSocket::Delegate* delegate) const OVERRIDE; 51 StreamListenSocket::Delegate* delegate) const override;
52 52
53 private: 53 private:
54 const std::string ip_; 54 const std::string ip_;
55 const int port_; 55 const int port_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(TCPListenSocketFactory); 57 DISALLOW_COPY_AND_ASSIGN(TCPListenSocketFactory);
58 }; 58 };
59 59
60 } // namespace net 60 } // namespace net
61 61
62 #endif // NET_SOCKET_TCP_LISTEN_SOCKET_H_ 62 #endif // NET_SOCKET_TCP_LISTEN_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket.h ('k') | net/socket/tcp_listen_socket_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698