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

Unified Diff: blimp/net/engine_connection_manager.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/engine_authentication_handler_unittest.cc ('k') | blimp/net/engine_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/engine_connection_manager.h
diff --git a/blimp/net/engine_connection_manager.h b/blimp/net/engine_connection_manager.h
deleted file mode 100644
index f4e991b72c98eacc185c6a8311db1086b8997817..0000000000000000000000000000000000000000
--- a/blimp/net/engine_connection_manager.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_
-#define BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/gtest_prod_util.h"
-#include "base/macros.h"
-#include "blimp/net/blimp_net_export.h"
-#include "blimp/net/connection_handler.h"
-#include "net/base/ip_endpoint.h"
-#include "net/log/net_log.h"
-
-namespace blimp {
-
-class BlimpEngineTransport;
-
-// Coordinates the channel creation and authentication workflows for
-// incoming (Engine) network connections.
-//
-// TODO(kmarshall): Add rate limiting and abuse handling logic.
-class BLIMP_NET_EXPORT EngineConnectionManager {
- public:
- enum class EngineTransportType { TCP, GRPC };
-
- // Caller is responsible for ensuring that |connection_handler| outlives
- // |this|.
- explicit EngineConnectionManager(ConnectionHandler* connection_handler,
- net::NetLog* net_log);
-
- ~EngineConnectionManager();
-
- // Adds a transport and accepts new BlimpConnections from it as fast as they
- // arrive. The |ip_endpoint| will receive the actual port-number if the
- // provided one is not available for listening.
- void ConnectTransport(net::IPEndPoint* ip_endpoint,
- EngineTransportType transport_type);
-
- private:
- // Invokes transport_->Connect to listen for a connection.
- void Connect();
-
- // Callback invoked by |transport_| to indicate that it has a connection
- // ready to be authenticated.
- void OnConnectResult(int result);
-
- ConnectionHandler* connection_handler_;
- net::NetLog* net_log_;
- std::unique_ptr<BlimpEngineTransport> transport_;
-
- DISALLOW_COPY_AND_ASSIGN(EngineConnectionManager);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_
« no previous file with comments | « blimp/net/engine_authentication_handler_unittest.cc ('k') | blimp/net/engine_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698