OLD | NEW |
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_CURVECP_SERVER_MESSENGER_H_ | 5 #ifndef NET_CURVECP_SERVER_MESSENGER_H_ |
6 #define NET_CURVECP_SERVER_MESSENGER_H_ | 6 #define NET_CURVECP_SERVER_MESSENGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/task.h" | |
14 #include "net/curvecp/messenger.h" | 13 #include "net/curvecp/messenger.h" |
15 #include "net/curvecp/packetizer.h" | 14 #include "net/curvecp/packetizer.h" |
16 #include "net/socket/socket.h" | 15 #include "net/socket/socket.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 | 18 |
20 // A specialized messenger for listening on a socket, accepting new sockets, | 19 // A specialized messenger for listening on a socket, accepting new sockets, |
21 // and dispatching io to secondary | 20 // and dispatching io to secondary |
22 class ServerMessenger : public Messenger { | 21 class ServerMessenger : public Messenger { |
23 public: | 22 public: |
(...skipping 13 matching lines...) Expand all Loading... |
37 virtual void OnConnection(ConnectionKey key) OVERRIDE; | 36 virtual void OnConnection(ConnectionKey key) OVERRIDE; |
38 | 37 |
39 private: | 38 private: |
40 Acceptor* acceptor_; | 39 Acceptor* acceptor_; |
41 DISALLOW_COPY_AND_ASSIGN(ServerMessenger); | 40 DISALLOW_COPY_AND_ASSIGN(ServerMessenger); |
42 }; | 41 }; |
43 | 42 |
44 } // namespace net | 43 } // namespace net |
45 | 44 |
46 #endif // NET_CURVECP_SERVER_MESSENGER_H_ | 45 #endif // NET_CURVECP_SERVER_MESSENGER_H_ |
OLD | NEW |