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

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

Issue 6030007: Chromoting protocol layers to receive and send login messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 9 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This stub is thread safe because of the use of BufferedSocketWriter. 5 // This stub is thread safe because of the use of BufferedSocketWriter.
6 // BufferedSocketWriter buffers messages and send them on them right thread. 6 // BufferedSocketWriter buffers messages and send them on them right thread.
7 7
8 #include "remoting/protocol/client_control_sender.h" 8 #include "remoting/protocol/client_control_sender.h"
9 9
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 13 matching lines...) Expand all
24 ClientControlSender::~ClientControlSender() { 24 ClientControlSender::~ClientControlSender() {
25 } 25 }
26 26
27 void ClientControlSender::NotifyResolution( 27 void ClientControlSender::NotifyResolution(
28 const NotifyResolutionRequest* msg, Task* done) { 28 const NotifyResolutionRequest* msg, Task* done) {
29 protocol::ControlMessage message; 29 protocol::ControlMessage message;
30 message.mutable_notify_resolution()->CopyFrom(*msg); 30 message.mutable_notify_resolution()->CopyFrom(*msg);
31 buffered_writer_->Write(SerializeAndFrameMessage(message), done); 31 buffered_writer_->Write(SerializeAndFrameMessage(message), done);
32 } 32 }
33 33
34 void ClientControlSender::BeginSessionResponse(const LocalLoginStatus* msg,
35 Task* done) {
36 protocol::ControlMessage message;
37 message.mutable_begin_session_response()->mutable_login_status()->CopyFrom(
38 *msg);
39 buffered_writer_->Write(SerializeAndFrameMessage(message), done);
40 }
41
34 } // namespace protocol 42 } // namespace protocol
35 } // namespace remoting 43 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698