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_ENGINE_CONNECTION_MANAGER_H_ | |
6 #define BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ | |
7 | |
8 #include "blimp/net/blimp_connection.h" | |
9 #include "blimp/net/connection_handler.h" | |
10 | |
11 namespace blimp { | |
12 | |
13 // Coordinates the channel creation and authentication workflows for | |
14 // incoming (Engine) network connections. | |
15 class EngineConnectionManager : public ConnectionHandler, | |
haibinlu
2015/11/04 00:41:26
move to blimp/engine/net
Kevin M
2015/11/04 20:09:02
Done.
| |
16 public BlimpConnection::DisconnectObserver { | |
17 public: | |
18 explicit EngineConnectionManager(ConnectionHandler* browser_session); | |
19 | |
20 // Accepts new BlimpConnections from |transport_| as fast as they arrive. | |
21 void StartListening(); | |
22 | |
23 // ConnectionHandler implementation. | |
24 // Handles a new connection from a Transport and passes it to a new | |
25 // EngineAuthHandler. | |
26 void HandleConnection(scoped_ptr<BlimpConnection> connection) override; | |
27 | |
28 // BlimpConnection::DisconnectObserver implementation. | |
29 void OnDisconnected() override; | |
30 }; | |
31 | |
32 } // namespace blimp | |
33 | |
34 #endif // BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ | |
OLD | NEW |