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

Side by Side Diff: blimp/net/grpc_engine_transport.h

Issue 2462183002: GRPC Stream implementation of HeliumStream
Patch Set: Created 4 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 2016 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_GRPC_ENGINE_TRANSPORT_H_
6 #define BLIMP_NET_GRPC_ENGINE_TRANSPORT_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "base/callback.h"
12 #include "base/macros.h"
13 #include "blimp/net/blimp_net_export.h"
14 #include "blimp/net/blimp_engine_transport.h"
15 #include "net/base/completion_callback.h"
16
17 namespace grpc {
18 class Server;
19 class CompletionQueue;
20 }
21
22 namespace blimp {
23
24 class GrpcEngineStream;
25 class GrpcConnection;
26
27 class BLIMP_NET_EXPORT GrpcEngineTransport : public BlimpEngineTransport {
28 public:
29 GrpcEngineTransport(const std::string& ip_address);
30
31 void Connect(const net::CompletionCallback& callback) override;
32 std::unique_ptr<BlimpConnection> MakeConnection() override;
33 const char* GetName() const override;
34 void GetLocalAddress(net::IPEndPoint* address) const override;
35 ~GrpcEngineTransport() override;
36
37 private:
38 std::string ip_address_;
39 std::unique_ptr<GrpcConnection> grpc_connection_;
40 };
41
42 } // namespace blimp
43
44 #endif // BLIMP_NET_GRPC_ENGINE_TRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698