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

Side by Side Diff: remoting/client/ios/facade/remoting_service.h

Issue 2828113002: Provide HostView with data required for creating a new and session, and render for CRD iOS. (Closed)
Patch Set: fixing issue based on feedback. Created 3 years, 8 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_ 5 #ifndef REMOTING_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_
6 #define REMOTING_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_ 6 #define REMOTING_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_
7 7
8 #import "remoting/client/chromoting_client_runtime.h" 8 #import "remoting/client/chromoting_client_runtime.h"
9 #import "remoting/client/ios/domain/host_info.h" 9 #import "remoting/client/ios/domain/host_info.h"
10 #import "remoting/client/ios/domain/user_info.h" 10 #import "remoting/client/ios/domain/user_info.h"
11 11
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "remoting/base/oauth_token_getter.h"
13 14
14 // |RemotingAuthenticationDelegate|s are interested in authentication related 15 // |RemotingAuthenticationDelegate|s are interested in authentication related
15 // notifications. 16 // notifications.
16 @protocol RemotingAuthenticationDelegate<NSObject> 17 @protocol RemotingAuthenticationDelegate<NSObject>
17 18
18 // Notifies the delegate that the authentication status of the current user has 19 // Notifies the delegate that the authentication status of the current user has
19 // changed to a new state. 20 // changed to a new state.
20 - (void)nowAuthenticated:(BOOL)authenticated; 21 - (void)nowAuthenticated:(BOOL)authenticated;
21 22
22 @end 23 @end
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // currently authenticated user. 61 // currently authenticated user.
61 - (UserInfo*)getUser; 62 - (UserInfo*)getUser;
62 63
63 // Register to be a |RemotingHostListDelegate|. Side effect of setting this 64 // Register to be a |RemotingHostListDelegate|. Side effect of setting this
64 // delegate is the application will attempt to fetch a fresh host list. 65 // delegate is the application will attempt to fetch a fresh host list.
65 - (void)setHostListDelegate:(id<RemotingHostListDelegate>)delegate; 66 - (void)setHostListDelegate:(id<RemotingHostListDelegate>)delegate;
66 67
67 // Returns the currently cached host list or nil if none exist. 68 // Returns the currently cached host list or nil if none exist.
68 - (NSArray<HostInfo*>*)getHosts; 69 - (NSArray<HostInfo*>*)getHosts;
69 70
71 // Fetches an OAuth Access Token and passes it back to the callback.
72 - (void)callbackWithAccessToken:
73 (const remoting::OAuthTokenGetter::TokenCallback&)onAccessToken;
74
70 @end 75 @end
71 76
72 #endif // REMOTING_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_ 77 #endif // REMOTING_CLIENT_IOS_FACADE_REMOTING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698