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

Unified Diff: blimp/net/blimp_engine_transport.h

Issue 2439403003: Refactor BlimpConnection to TCPConnection (Closed)
Patch Set: Added missing Engine Transport Created 4 years, 2 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
Index: blimp/net/blimp_engine_transport.h
diff --git a/blimp/net/blimp_engine_transport.h b/blimp/net/blimp_engine_transport.h
new file mode 100644
index 0000000000000000000000000000000000000000..26747d9fd73f8576e7744dc8bdec106ef24c0757
--- /dev/null
+++ b/blimp/net/blimp_engine_transport.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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_BLIMP_ENGINE_TRANSPORT_H_
+#define BLIMP_NET_BLIMP_ENGINE_TRANSPORT_H_
+
+#include <memory>
+#include <string>
+
+#include "blimp/net/blimp_transport.h"
+#include "net/base/ip_endpoint.h"
+
+namespace blimp {
+
+// Interface specific to engine transport on top of generic |BlimpTransport|.
+class BlimpEngineTransport : public BlimpTransport {
Wez 2016/11/09 22:47:17 The GetLocalAddress() API only makes sense for an
perumaal 2016/11/10 02:05:05 I am reusing this for GRPC. Please see https://cod
+ public:
+ ~BlimpEngineTransport() override {}
+
+ // Obtains the local listening address.
+ virtual void GetLocalAddress(net::IPEndPoint* ip_address) const = 0;
+};
+
+} // namespace blimp
+
+#endif // BLIMP_NET_BLIMP_ENGINE_TRANSPORT_H_

Powered by Google App Engine
This is Rietveld 408576698