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

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

Issue 2462183002: GRPC Stream implementation of HeliumStream
Patch Set: Fixed a few minor 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
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/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
34 void Connect(const net::CompletionCallback& callback) override;
35 std::unique_ptr<BlimpConnection> MakeConnection() override;
36 const char* GetName() const override;
37 void GetAssignmentOptions(
38 AssignmentOptions* assignment_options) const override;
39 ~GrpcEngineTransport() 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

Powered by Google App Engine
This is Rietveld 408576698