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

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

Issue 231943005: Rename remoting/protocol/util.h to message_serialization.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/protocol/channel_multiplexer.cc ('k') | remoting/protocol/client_event_dispatcher.cc » ('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/protocol/client_control_dispatcher.h" 5 #include "remoting/protocol/client_control_dispatcher.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "net/socket/stream_socket.h" 11 #include "net/socket/stream_socket.h"
12 #include "remoting/base/constants.h" 12 #include "remoting/base/constants.h"
13 #include "remoting/proto/control.pb.h" 13 #include "remoting/proto/control.pb.h"
14 #include "remoting/proto/internal.pb.h" 14 #include "remoting/proto/internal.pb.h"
15 #include "remoting/protocol/client_stub.h" 15 #include "remoting/protocol/client_stub.h"
16 #include "remoting/protocol/util.h" 16 #include "remoting/protocol/message_serialization.h"
17 17
18 namespace remoting { 18 namespace remoting {
19 namespace protocol { 19 namespace protocol {
20 20
21 namespace { 21 namespace {
22 22
23 // 32-bit BGRA is 4 bytes per pixel. 23 // 32-bit BGRA is 4 bytes per pixel.
24 const int kBytesPerPixel = 4; 24 const int kBytesPerPixel = 4;
25 25
26 bool CursorShapeIsValid(const CursorShapeInfo& cursor_shape) { 26 bool CursorShapeIsValid(const CursorShapeInfo& cursor_shape) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 client_stub_->SetPairingResponse(message->pairing_response()); 139 client_stub_->SetPairingResponse(message->pairing_response());
140 } else if (message->has_extension_message()) { 140 } else if (message->has_extension_message()) {
141 client_stub_->DeliverHostMessage(message->extension_message()); 141 client_stub_->DeliverHostMessage(message->extension_message());
142 } else { 142 } else {
143 LOG(WARNING) << "Unknown control message received."; 143 LOG(WARNING) << "Unknown control message received.";
144 } 144 }
145 } 145 }
146 146
147 } // namespace protocol 147 } // namespace protocol
148 } // namespace remoting 148 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/client_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698