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

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

Issue 7466004: Message validation in message dispatchers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 5 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/client/chromoting_client.cc ('k') | remoting/host/client_session.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) 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 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_
6 #define REMOTING_HOST_CLIENT_SESSION_H_ 6 #define REMOTING_HOST_CLIENT_SESSION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
(...skipping 28 matching lines...) Expand all
39 }; 39 };
40 40
41 // Takes ownership of |user_authenticator|. Does not take ownership of 41 // Takes ownership of |user_authenticator|. Does not take ownership of
42 // |event_handler| or |input_stub|. 42 // |event_handler| or |input_stub|.
43 ClientSession(EventHandler* event_handler, 43 ClientSession(EventHandler* event_handler,
44 UserAuthenticator* user_authenticator, 44 UserAuthenticator* user_authenticator,
45 scoped_refptr<protocol::ConnectionToClient> connection, 45 scoped_refptr<protocol::ConnectionToClient> connection,
46 protocol::InputStub* input_stub); 46 protocol::InputStub* input_stub);
47 47
48 // protocol::HostStub interface. 48 // protocol::HostStub interface.
49 virtual void SuggestResolution(
50 const protocol::SuggestResolutionRequest* msg, Task* done);
51 virtual void BeginSessionRequest( 49 virtual void BeginSessionRequest(
52 const protocol::LocalLoginCredentials* credentials, Task* done); 50 const protocol::LocalLoginCredentials* credentials, Task* done);
53 51
54 // protocol::InputStub interface. 52 // protocol::InputStub interface.
55 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done); 53 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done);
56 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done); 54 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done);
57 55
58 // Disconnect this client session. 56 // Disconnect this client session.
59 void Disconnect(); 57 void Disconnect();
60 58
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::list<gfx::Point> recent_remote_mouse_positions_; 116 std::list<gfx::Point> recent_remote_mouse_positions_;
119 base::Time latest_local_input_time_; 117 base::Time latest_local_input_time_;
120 std::set<int> pressed_keys_; 118 std::set<int> pressed_keys_;
121 119
122 DISALLOW_COPY_AND_ASSIGN(ClientSession); 120 DISALLOW_COPY_AND_ASSIGN(ClientSession);
123 }; 121 };
124 122
125 } // namespace remoting 123 } // namespace remoting
126 124
127 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 125 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698