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

Side by Side Diff: remoting/host/client_session.cc

Issue 22477006: Added JsonMessage to the control channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "remoting/base/capabilities.h" 10 #include "remoting/base/capabilities.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 if (pairing_request.has_client_name()) { 180 if (pairing_request.has_client_name()) {
181 protocol::PairingRegistry::Pairing pairing = 181 protocol::PairingRegistry::Pairing pairing =
182 pairing_registry_->CreatePairing(pairing_request.client_name()); 182 pairing_registry_->CreatePairing(pairing_request.client_name());
183 protocol::PairingResponse pairing_response; 183 protocol::PairingResponse pairing_response;
184 pairing_response.set_client_id(pairing.client_id()); 184 pairing_response.set_client_id(pairing.client_id());
185 pairing_response.set_shared_secret(pairing.shared_secret()); 185 pairing_response.set_shared_secret(pairing.shared_secret());
186 connection_->client_stub()->SetPairingResponse(pairing_response); 186 connection_->client_stub()->SetPairingResponse(pairing_response);
187 } 187 }
188 } 188 }
189 189
190 void ClientSession::DeliverClientMessage(
191 const protocol::ExtensionMessage& message) {
192 // No messages are currently supported.
193 LOG(INFO) << "Unexpected message received: "
194 << message.type() << ": " << message.data();
195 }
196
190 void ClientSession::OnConnectionAuthenticated( 197 void ClientSession::OnConnectionAuthenticated(
191 protocol::ConnectionToClient* connection) { 198 protocol::ConnectionToClient* connection) {
192 DCHECK(CalledOnValidThread()); 199 DCHECK(CalledOnValidThread());
193 DCHECK_EQ(connection_.get(), connection); 200 DCHECK_EQ(connection_.get(), connection);
194 DCHECK(!audio_scheduler_.get()); 201 DCHECK(!audio_scheduler_.get());
195 DCHECK(!desktop_environment_); 202 DCHECK(!desktop_environment_);
196 DCHECK(!input_injector_); 203 DCHECK(!input_injector_);
197 DCHECK(!screen_controls_); 204 DCHECK(!screen_controls_);
198 DCHECK(!video_scheduler_.get()); 205 DCHECK(!video_scheduler_.get());
199 206
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 return scoped_ptr<AudioEncoder>(new AudioEncoderSpeex()); 438 return scoped_ptr<AudioEncoder>(new AudioEncoderSpeex());
432 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { 439 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) {
433 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus()); 440 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus());
434 } 441 }
435 442
436 NOTIMPLEMENTED(); 443 NOTIMPLEMENTED();
437 return scoped_ptr<AudioEncoder>(); 444 return scoped_ptr<AudioEncoder>();
438 } 445 }
439 446
440 } // namespace remoting 447 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698