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

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

Issue 7867019: Access Session::config() and Session::jid() on the correct thread only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 9 years, 3 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/heartbeat_sender.cc ('k') | remoting/host/plugin/host_script_object.h » ('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_STATUS_OBSERVER_H_ 5 #ifndef REMOTING_HOST_STATUS_OBSERVER_H_
6 #define REMOTING_HOST_STATUS_OBSERVER_H_ 6 #define REMOTING_HOST_STATUS_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace remoting { 10 namespace remoting {
(...skipping 13 matching lines...) Expand all
24 const std::string& full_jid) = 0; 24 const std::string& full_jid) = 0;
25 virtual void OnSignallingDisconnected() = 0; 25 virtual void OnSignallingDisconnected() = 0;
26 26
27 // Called on the network thread when an unauthorized user attempts 27 // Called on the network thread when an unauthorized user attempts
28 // to connect to the host. 28 // to connect to the host.
29 virtual void OnAccessDenied() = 0; 29 virtual void OnAccessDenied() = 0;
30 30
31 // Called on the main thread when a client authenticates, or disconnects. 31 // Called on the main thread when a client authenticates, or disconnects.
32 // The observer must not tear-down ChromotingHost state on receipt of 32 // The observer must not tear-down ChromotingHost state on receipt of
33 // this callback; it is purely informational. 33 // this callback; it is purely informational.
34 virtual void OnClientAuthenticated( 34 virtual void OnClientAuthenticated(const std::string& jid) = 0;
35 remoting::protocol::ConnectionToClient* client) = 0; 35 virtual void OnClientDisconnected(const std::string& jid) = 0;
36 virtual void OnClientDisconnected(
37 remoting::protocol::ConnectionToClient* client) = 0;
38 36
39 // Called on the main thread when the host shuts down. 37 // Called on the main thread when the host shuts down.
40 virtual void OnShutdown() = 0; 38 virtual void OnShutdown() = 0;
41 }; 39 };
42 40
43 } // namespace remoting 41 } // namespace remoting
44 42
45 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ 43 #endif // REMOTING_HOST_STATUS_OBSERVER_H_
OLDNEW
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/plugin/host_script_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698