OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BLIMP_NET_CONNECTION_HANDLER_H_ | |
6 #define BLIMP_NET_CONNECTION_HANDLER_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 namespace blimp { | |
11 | |
12 class BlimpConnection; | |
13 | |
14 // Interface for objects that can take possession of BlimpConnections. | |
15 class ConnectionHandler { | |
16 public: | |
17 virtual ~ConnectionHandler() {} | |
18 | |
19 virtual void HandleConnection( | |
20 std::unique_ptr<BlimpConnection> connection) = 0; | |
21 }; | |
22 | |
23 } // namespace blimp | |
24 | |
25 #endif // BLIMP_NET_CONNECTION_HANDLER_H_ | |
OLD | NEW |