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

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

Issue 2462183002: GRPC Stream implementation of HeliumStream
Patch Set: Address gcasto comments 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
« no previous file with comments | « blimp/net/grpc_engine_stream.cc ('k') | blimp/net/grpc_engine_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/public/session/assignment_options.h"
14 #include "blimp/net/blimp_engine_transport.h"
15 #include "blimp/net/blimp_net_export.h"
16 #include "net/base/completion_callback.h"
17
18 namespace grpc {
19 class Server;
20 class CompletionQueue;
21 }
22
23 namespace blimp {
24
25 class GrpcEngineStream;
26 class GrpcConnection;
27
28 // Class that interfaces a BlimpEngineTransport to a GrpcEngineStream
29 // through a GrpcConnection.
30 class BLIMP_NET_EXPORT GrpcEngineTransport : public BlimpEngineTransport {
31 public:
32 explicit GrpcEngineTransport(const AssignmentOptions& assignment_options);
33 ~GrpcEngineTransport() override;
34
35 void Connect(const net::CompletionCallback& callback) override;
36 std::unique_ptr<BlimpConnection> MakeConnection() override;
37 const char* GetName() const override;
38 void GetAssignmentOptions(
39 AssignmentOptions* assignment_options) const override;
40
41 private:
42 AssignmentOptions assignment_options_;
43 std::unique_ptr<GrpcConnection> grpc_connection_;
44 };
45
46 } // namespace blimp
47
48 #endif // BLIMP_NET_GRPC_ENGINE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « blimp/net/grpc_engine_stream.cc ('k') | blimp/net/grpc_engine_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698