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

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

Issue 1165333003: Remove unnecessary message_loop_proxy.h includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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
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_event_dispatcher.h" 5 #include "remoting/protocol/client_event_dispatcher.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/time/time.h" 7 #include "base/time/time.h"
9 #include "net/socket/stream_socket.h" 8 #include "net/socket/stream_socket.h"
10 #include "remoting/base/constants.h" 9 #include "remoting/base/constants.h"
11 #include "remoting/proto/event.pb.h" 10 #include "remoting/proto/event.pb.h"
12 #include "remoting/proto/internal.pb.h" 11 #include "remoting/proto/internal.pb.h"
13 #include "remoting/protocol/message_serialization.h" 12 #include "remoting/protocol/message_serialization.h"
14 13
15 namespace remoting { 14 namespace remoting {
16 namespace protocol { 15 namespace protocol {
17 16
(...skipping 30 matching lines...) Expand all
48 47
49 void ClientEventDispatcher::InjectTouchEvent(const TouchEvent& event) { 48 void ClientEventDispatcher::InjectTouchEvent(const TouchEvent& event) {
50 EventMessage message; 49 EventMessage message;
51 message.set_timestamp(base::Time::Now().ToInternalValue()); 50 message.set_timestamp(base::Time::Now().ToInternalValue());
52 message.mutable_touch_event()->CopyFrom(event); 51 message.mutable_touch_event()->CopyFrom(event);
53 writer()->Write(SerializeAndFrameMessage(message), base::Closure()); 52 writer()->Write(SerializeAndFrameMessage(message), base::Closure());
54 } 53 }
55 54
56 } // namespace protocol 55 } // namespace protocol
57 } // namespace remoting 56 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/client_control_dispatcher.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698