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

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

Issue 7210025: Split host plugin into multiple files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge gary's changes 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/remoting.gyp » ('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>
9
8 namespace remoting { 10 namespace remoting {
9 11
10 class SignalStrategy; 12 class SignalStrategy;
11 13
12 class HostStatusObserver { 14 class HostStatusObserver {
13 public: 15 public:
14 HostStatusObserver() { } 16 HostStatusObserver() { }
15 virtual ~HostStatusObserver() { } 17 virtual ~HostStatusObserver() { }
16 18
17 // Called on the network thread when status of the XMPP changes. 19 // Called on the network thread when status of the XMPP changes.
18 virtual void OnSignallingConnected(SignalStrategy* signal_strategy, 20 virtual void OnSignallingConnected(SignalStrategy* signal_strategy,
19 const std::string& full_jid) = 0; 21 const std::string& full_jid) = 0;
20 virtual void OnSignallingDisconnected() = 0; 22 virtual void OnSignallingDisconnected() = 0;
21 23
22 // Called on the network thread when an unauthorized user attempts 24 // Called on the network thread when an unauthorized user attempts
23 // to connect to the host. 25 // to connect to the host.
24 virtual void OnAccessDenied() = 0; 26 virtual void OnAccessDenied() = 0;
25 27
26 // Called on the main thread when the host shuts down. 28 // Called on the main thread when the host shuts down.
27 virtual void OnShutdown() = 0; 29 virtual void OnShutdown() = 0;
28 }; 30 };
29 31
30 } // namespace remoting 32 } // namespace remoting
31 33
32 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ 34 #endif // REMOTING_HOST_STATUS_OBSERVER_H_
OLDNEW
« no previous file with comments | « remoting/host/host_script_object.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698