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

Unified Diff: remoting/ios/facade/remoting_service.h

Issue 2957943002: [CRD iOS] Add the host setup instruction page (Closed)
Patch Set: Resolve Feedback Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/ios/facade/host_list_fetcher.cc ('k') | remoting/ios/facade/remoting_service.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/facade/remoting_service.h
diff --git a/remoting/ios/facade/remoting_service.h b/remoting/ios/facade/remoting_service.h
index 120e8ce336f939f539d90749c3dd1115be1dd066..af15a60a95d14ed49865b38926f136d89be14aca 100644
--- a/remoting/ios/facade/remoting_service.h
+++ b/remoting/ios/facade/remoting_service.h
@@ -12,10 +12,21 @@
@protocol RemotingAuthentication;
+typedef NS_ENUM(NSInteger, HostListState) {
+ // Nobody has requested a host list fetch.
+ HostListStateNotFetched,
+
+ // The host list is currently being fetched.
+ HostListStateFetching,
+
+ // The host list has been fetched.
+ HostListStateFetched,
+};
+
// Eventing related keys:
// Hosts did update event.
-extern NSString* const kHostsDidUpdate;
+extern NSString* const kHostListStateDidChange;
// User did update event name.
extern NSString* const kUserDidUpdate;
// Map key for UserInfo object.
@@ -37,6 +48,8 @@ extern NSString* const kUserInfo;
// Returns the current host list.
@property(nonatomic, readonly) NSArray<HostInfo*>* hosts;
+@property(nonatomic, readonly) HostListState hostListState;
+
// The Chromoting Client Runtime, this holds the threads and other shared
// resources used by the Chromoting clients
@property(nonatomic, readonly) remoting::ChromotingClientRuntime* runtime;
« no previous file with comments | « remoting/ios/facade/host_list_fetcher.cc ('k') | remoting/ios/facade/remoting_service.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698