Index: remoting/host/it2me/it2me_host.h |
diff --git a/remoting/host/it2me/it2me_host.h b/remoting/host/it2me/it2me_host.h |
index 0b16085590738ba092da60f12d5e1ecbe612ab60..5270af60297d3d7b2467fcb87b63b8a48bab4baa 100644 |
--- a/remoting/host/it2me/it2me_host.h |
+++ b/remoting/host/it2me/it2me_host.h |
@@ -42,7 +42,6 @@ enum It2MeHostState { |
kRequestedAccessCode, |
kReceivedAccessCode, |
kConnected, |
- kDisconnecting, |
kError, |
kInvalidDomainError |
}; |
@@ -84,7 +83,7 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
// remoting::HostStatusObserver implementation. |
void OnAccessDenied(const std::string& jid) override; |
- void OnClientAuthenticated(const std::string& jid) override; |
+ void OnClientConnected(const std::string& jid) override; |
void OnClientDisconnected(const std::string& jid) override; |
void SetStateForTesting(It2MeHostState state, |
@@ -128,14 +127,6 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
const base::TimeDelta& lifetime, |
const std::string& error_message); |
- // Shuts down |host_| on the network thread and posts ShutdownOnUiThread() |
- // to shut down UI thread resources. |
- void ShutdownOnNetworkThread(); |
- |
- // Shuts down |desktop_environment_factory_| and |policy_watcher_| on |
- // the UI thread. |
- void ShutdownOnUiThread(); |
- |
// Called when initial policies are read, and when they change. |
void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); |
@@ -146,6 +137,8 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>, |
void UpdateNatPolicy(bool nat_traversal_enabled); |
void UpdateHostDomainPolicy(const std::string& host_domain); |
+ void Shutdown(); |
+ |
// Caller supplied fields. |
scoped_ptr<ChromotingHostContext> host_context_; |
scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |