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

Side by Side Diff: blimp/net/grpc_client_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_CLIENT_TRANSPORT_H_
6 #define BLIMP_NET_GRPC_CLIENT_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_transport.h"
15 #include "net/base/completion_callback.h"
16
17 namespace grpc {
18 class Client;
19 }
20
21 namespace blimp {
22
23 class GrpcClientStream;
24 class GrpcConnection;
25
26 class BLIMP_NET_EXPORT GrpcClientTransport : public BlimpTransport {
27 public:
28 GrpcClientTransport(const std::string& ip_address);
29
30 void Connect(const net::CompletionCallback& callback) override;
31
32 std::unique_ptr<BlimpConnection> MakeConnection() override;
33
34 const char* GetName() const override;
35
36 ~GrpcClientTransport() override;
37
38 private:
39 std::string ip_address_;
40 std::unique_ptr<GrpcConnection> grpc_connection_;
41 };
42
43 } // namespace blimp
44
45 #endif // BLIMP_NET_GRPC_CLIENT_TRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698