diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 20:54:47 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 20:54:47 +0000 |
commit | 970fb675f98ba3f0a243d1f9f0e9ab8b15f7ac45 (patch) | |
tree | b61657e7ada88ee55f40870338c045ae91289afc /remoting/host/host_status_observer.h | |
parent | ef3b6f3ef05e7dec8dab10c82e3cdc44e60c9fc4 (diff) | |
download | chromium_src-970fb675f98ba3f0a243d1f9f0e9ab8b15f7ac45.zip chromium_src-970fb675f98ba3f0a243d1f9f0e9ab8b15f7ac45.tar.gz chromium_src-970fb675f98ba3f0a243d1f9f0e9ab8b15f7ac45.tar.bz2 |
Cleanups in the host shutdown logic and some minor fixes.
- replaced me2mom with it2me,
- Remove refcounting in HostStatusObserver,
- Cleanup shutdown logic in ChromotingHost,
- Cleanup shutdown logic in host plugin, particularly it now uses main host thread instead of the plugin thread to start/stop the host.
BUG=None
TEST=Don't crash when closing a tab.
Review URL: http://codereview.chromium.org/7182005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_status_observer.h')
-rw-r--r-- | remoting/host/host_status_observer.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/remoting/host/host_status_observer.h b/remoting/host/host_status_observer.h index dd0ae85..e7fda0b 100644 --- a/remoting/host/host_status_observer.h +++ b/remoting/host/host_status_observer.h @@ -5,16 +5,14 @@ #ifndef REMOTING_HOST_STATUS_OBSERVER_H_ #define REMOTING_HOST_STATUS_OBSERVER_H_ -#include "base/memory/ref_counted.h" - namespace remoting { class SignalStrategy; -class HostStatusObserver - : public base::RefCountedThreadSafe<HostStatusObserver> { +class HostStatusObserver { public: HostStatusObserver() { } + virtual ~HostStatusObserver() { } // Called on the network thread when status of the XMPP changes. virtual void OnSignallingConnected(SignalStrategy* signal_strategy, @@ -23,10 +21,6 @@ class HostStatusObserver // Called on the main thread when the host shuts down. virtual void OnShutdown() = 0; - - protected: - friend class base::RefCountedThreadSafe<HostStatusObserver>; - virtual ~HostStatusObserver() { } }; } // namespace remoting |