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

Side by Side Diff: blimp/client/net/client_connection_manager.h

Issue 1429193002: Add interfaces for most major Blimp net components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Import multiplexer changes from 1434533005 Created 5 years, 1 month 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
(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_CLIENT_NET_CLIENT_CONNECTION_MANAGER_H_
6 #define BLIMP_CLIENT_NET_CLIENT_CONNECTION_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "blimp/net/blimp_connection.h"
10 #include "blimp/net/connection_handler.h"
11
12 namespace blimp {
13
14 // Coordinates the channel creation and authentication workflows for
15 // outgoing (Client) network connections.
16 class ClientConnectionManager : public ConnectionHandler,
17 BlimpConnection::DisconnectObserver {
18 explicit ClientConnectionManager(ConnectionHandler* client_browser_session);
Wez 2015/11/12 00:12:53 Add a comment to clarify ownership/lifetime expect
Kevin M 2015/11/12 01:53:15 Done.
19
20 ~ClientConnectionManager();
Wez 2015/11/12 00:12:53 This should be an override (see comment on Connect
Kevin M 2015/11/12 01:53:15 Done.
21
22 void Connect();
23
24 // ConnectionHandler implementation.
25 // Handles a new connection from a Transport and passes it to a new
26 // ClientAuthHandler.
Wez 2015/11/12 00:12:53 ClientAuthHandler is an internal implementation de
27 void HandleConnection(scoped_ptr<BlimpConnection> connection) override;
28
29 // BlimpConnection::DisconnectObserver implementation.
30 // Called when an authenticated BlimpConnection is disconnected, which may
31 // trigger reconnection.
Wez 2015/11/12 00:12:53 It's not clear from the class level description th
Kevin M 2015/11/12 01:53:15 Done.
32 void OnDisconnected() override;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ClientConnectionManager);
36 };
37
38 } // namespace blimp
39
40 #endif // BLIMP_CLIENT_NET_CLIENT_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698