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

Unified Diff: remoting/host/it2me/it2me_host.h

Issue 2452223002: It2Me Host changes to better support Confirmation Dialog (Closed)
Patch Set: Reordering enum Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_host.h
diff --git a/remoting/host/it2me/it2me_host.h b/remoting/host/it2me/it2me_host.h
index 08a2bcedb71bed085e9d473c8a3ac49a1c08cf40..ac8187974954b7eec44c0300fa00a97bdc69f7aa 100644
--- a/remoting/host/it2me/it2me_host.h
+++ b/remoting/host/it2me/it2me_host.h
@@ -37,16 +37,17 @@ class PolicyWatcher;
class RegisterSupportHostRequest;
class RsaKeyPair;
-// These state values are duplicated in host_session.js and the Android Java
-// It2MeObserver class. Remember to update all copies when making changes.
+// These state values are duplicated in host_session.js. Remember to update
+// both copies when making changes.
enum It2MeHostState {
kDisconnected,
kStarting,
kRequestedAccessCode,
kReceivedAccessCode,
+ kConnecting,
kConnected,
kError,
- kInvalidDomainError
+ kInvalidDomainError,
};
// Internal implementation of the plugin's It2Me host function.
@@ -115,8 +116,8 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// Updates state of the host. Can be called only on the network thread.
void SetState(It2MeHostState state, const std::string& error_message);
- // Returns true if the host is connected.
- bool IsConnected() const;
+ // Returns true if the host is in a post-starting, non-error state.
+ bool IsRunning() const;
// Processes the result of the confirmation dialog.
void OnConfirmationResult(
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698