| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ | 5 #ifndef BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ |
| 6 #define BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ | 6 #define BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "blimp/net/blimp_net_export.h" | 13 #include "blimp/net/blimp_net_export.h" |
| 14 #include "blimp/net/connection_handler.h" | 14 #include "blimp/net/connection_handler.h" |
| 15 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
| 16 #include "net/log/net_log.h" | 16 #include "net/log/net_log.h" |
| 17 | 17 |
| 18 namespace blimp { | 18 namespace blimp { |
| 19 | 19 |
| 20 class BlimpConnection; | |
| 21 class BlimpTransport; | |
| 22 class BlimpEngineTransport; | 20 class BlimpEngineTransport; |
| 23 | 21 |
| 24 // Coordinates the channel creation and authentication workflows for | 22 // Coordinates the channel creation and authentication workflows for |
| 25 // incoming (Engine) network connections. | 23 // incoming (Engine) network connections. |
| 26 // | 24 // |
| 27 // TODO(kmarshall): Add rate limiting and abuse handling logic. | 25 // TODO(kmarshall): Add rate limiting and abuse handling logic. |
| 28 class BLIMP_NET_EXPORT EngineConnectionManager { | 26 class BLIMP_NET_EXPORT EngineConnectionManager { |
| 29 public: | 27 public: |
| 30 enum class EngineTransportType { TCP, GRPC }; | 28 enum class EngineTransportType { TCP, GRPC }; |
| 31 | 29 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 ConnectionHandler* connection_handler_; | 51 ConnectionHandler* connection_handler_; |
| 54 net::NetLog* net_log_; | 52 net::NetLog* net_log_; |
| 55 std::unique_ptr<BlimpEngineTransport> transport_; | 53 std::unique_ptr<BlimpEngineTransport> transport_; |
| 56 | 54 |
| 57 DISALLOW_COPY_AND_ASSIGN(EngineConnectionManager); | 55 DISALLOW_COPY_AND_ASSIGN(EngineConnectionManager); |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace blimp | 58 } // namespace blimp |
| 61 | 59 |
| 62 #endif // BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ | 60 #endif // BLIMP_NET_ENGINE_CONNECTION_MANAGER_H_ |
| OLD | NEW |