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

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

Issue 7134023: Notify calling web-app when Host plugin becomes connected to a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove blank line from rebase. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_script_object.cc ('k') | remoting/host/register_support_host_request.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 {
11 11
12 class SignalStrategy; 12 class SignalStrategy;
13 13
14 class HostStatusObserver { 14 class HostStatusObserver {
15 public: 15 public:
16 HostStatusObserver() { } 16 HostStatusObserver() { }
17 virtual ~HostStatusObserver() { } 17 virtual ~HostStatusObserver() { }
18 18
19 // Called on the network thread when status of the XMPP changes. 19 // Called on the network thread when status of the XMPP changes.
20 virtual void OnSignallingConnected(SignalStrategy* signal_strategy, 20 virtual void OnSignallingConnected(SignalStrategy* signal_strategy,
21 const std::string& full_jid) = 0; 21 const std::string& full_jid) = 0;
22 virtual void OnSignallingDisconnected() = 0; 22 virtual void OnSignallingDisconnected() = 0;
23 23
24 // Called on the network thread when an unauthorized user attempts 24 // Called on the network thread when an unauthorized user attempts
25 // to connect to the host. 25 // to connect to the host.
26 virtual void OnAccessDenied() = 0; 26 virtual void OnAccessDenied() = 0;
27 27
28 // Called on the main thread when a client authenticates, or disconnects.
29 // The observer must not tear-down ChromotingHost state on receipt of
30 // this callback; it is purely informational.
31 virtual void OnAuthenticatedClientsChanged(int authenticated_clients) = 0;
32
28 // Called on the main thread when the host shuts down. 33 // Called on the main thread when the host shuts down.
29 virtual void OnShutdown() = 0; 34 virtual void OnShutdown() = 0;
30 }; 35 };
31 36
32 } // namespace remoting 37 } // namespace remoting
33 38
34 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ 39 #endif // REMOTING_HOST_STATUS_OBSERVER_H_
OLDNEW
« no previous file with comments | « remoting/host/host_script_object.cc ('k') | remoting/host/register_support_host_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698