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

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

Issue 8495024: Access ChromotingHost::clients_ only on network thread. (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 #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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // protocol::ConnectionToClient::EventHandler interface. 50 // protocol::ConnectionToClient::EventHandler interface.
51 virtual void OnConnectionOpened( 51 virtual void OnConnectionOpened(
52 protocol::ConnectionToClient* connection) OVERRIDE; 52 protocol::ConnectionToClient* connection) OVERRIDE;
53 virtual void OnConnectionClosed( 53 virtual void OnConnectionClosed(
54 protocol::ConnectionToClient* connection) OVERRIDE; 54 protocol::ConnectionToClient* connection) OVERRIDE;
55 virtual void OnConnectionFailed( 55 virtual void OnConnectionFailed(
56 protocol::ConnectionToClient* connection) OVERRIDE; 56 protocol::ConnectionToClient* connection) OVERRIDE;
57 virtual void OnSequenceNumberUpdated( 57 virtual void OnSequenceNumberUpdated(
58 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; 58 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE;
59 59
60 // Disconnect the session 60 // Disconnect the session.
61 void Disconnect(); 61 void Disconnect();
62 62
63 protocol::ConnectionToClient* connection() const { 63 protocol::ConnectionToClient* connection() const {
64 return connection_.get(); 64 return connection_.get();
65 } 65 }
66 66
67 bool authenticated() const { 67 bool authenticated() const {
68 return authenticated_; 68 return authenticated_;
69 } 69 }
70 70
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Set of keys that are currently pressed down by the user. This is used so 136 // Set of keys that are currently pressed down by the user. This is used so
137 // we can release them if the user disconnects. 137 // we can release them if the user disconnects.
138 std::set<int> pressed_keys_; 138 std::set<int> pressed_keys_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(ClientSession); 140 DISALLOW_COPY_AND_ASSIGN(ClientSession);
141 }; 141 };
142 142
143 } // namespace remoting 143 } // namespace remoting
144 144
145 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 145 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698