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

Side by Side Diff: remoting/protocol/fake_message_pipe_wrapper.cc

Issue 2907073003: [Chromoting] Add DataChannelManager to manage optional incoming data channels (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 #include "remoting/protocol/fake_message_pipe_wrapper.h"
6
7 #include <utility>
8
9 #include "remoting/base/compound_buffer.h"
10 #include "remoting/protocol/fake_message_pipe.h"
11
12 namespace remoting {
13 namespace protocol {
14
15 FakeMessagePipeWrapper::FakeMessagePipeWrapper(FakeMessagePipe* pipe)
16 : pipe_(pipe) {}
joedow 2017/05/30 16:24:18 DCHECK(pipe_); If there is a bug I think that wou
Hzj_jie 2017/05/31 00:11:53 Done.
17 FakeMessagePipeWrapper::~FakeMessagePipeWrapper() = default;
18
19 void FakeMessagePipeWrapper::Start(EventHandler* event_handler) {
20 pipe_->Start(event_handler);
21 }
22
23 void FakeMessagePipeWrapper::Send(google::protobuf::MessageLite* message,
24 const base::Closure& done) {
25 pipe_->Send(message, done);
26 }
27
28 void FakeMessagePipeWrapper::Receive(std::unique_ptr<CompoundBuffer> message) {
29 pipe_->Receive(std::move(message));
30 }
31
32 void FakeMessagePipeWrapper::OpenPipe() {
33 pipe_->OpenPipe();
34 }
35
36 void FakeMessagePipeWrapper::ClosePipe() {
37 pipe_->ClosePipe();
38 }
39
40 } // namespace protocol
41 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698