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

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

Issue 8351084: Remove old Authentication code that we don't use or need. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "net/base/io_buffer.h" 6 #include "net/base/io_buffer.h"
7 #include "remoting/proto/control.pb.h" 7 #include "remoting/proto/control.pb.h"
8 #include "remoting/proto/event.pb.h" 8 #include "remoting/proto/event.pb.h"
9 #include "remoting/proto/internal.pb.h" 9 #include "remoting/proto/internal.pb.h"
10 #include "remoting/protocol/client_message_dispatcher.h" 10 #include "remoting/protocol/client_message_dispatcher.h"
(...skipping 22 matching lines...) Expand all
33 33
34 control_message_reader_->Init( 34 control_message_reader_->Init(
35 session->control_channel(), 35 session->control_channel(),
36 base::Bind(&ClientMessageDispatcher::OnControlMessageReceived, 36 base::Bind(&ClientMessageDispatcher::OnControlMessageReceived,
37 base::Unretained(this))); 37 base::Unretained(this)));
38 return; 38 return;
39 } 39 }
40 40
41 void ClientMessageDispatcher::OnControlMessageReceived( 41 void ClientMessageDispatcher::OnControlMessageReceived(
42 ControlMessage* message, const base::Closure& done_task) { 42 ControlMessage* message, const base::Closure& done_task) {
43 if (message->has_begin_session_response()) {
44 const BeginSessionResponse& response = message->begin_session_response();
45 if (response.has_login_status() &&
46 response.login_status().has_success()) {
47 client_stub_->BeginSessionResponse(
48 &response.login_status(), done_task);
49 return;
50 }
51 }
52 43
53 LOG(WARNING) << "Invalid control message received."; 44 LOG(WARNING) << "Invalid control message received.";
54
55 done_task.Run(); 45 done_task.Run();
56 } 46 }
57 47
58 } // namespace protocol 48 } // namespace protocol
59 } // namespace remoting 49 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698