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

Side by Side Diff: ios/public/provider/chrome/browser/signin/chrome_identity_service.h

Issue 2920853006: Removes usage of signin APIs that return scoped_nsobjects. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/mac/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
msarda 2017/06/08 23:21:06 Remove this include.
stkhapugin 2017/06/12 15:49:31 With 5 CLs required to land this cleanly, this wil
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 15
16 @class ChromeIdentity; 16 @class ChromeIdentity;
17 @protocol ChromeIdentityBrowserOpener; 17 @protocol ChromeIdentityBrowserOpener;
18 @class ChromeIdentityInteractionManager; 18 @class ChromeIdentityInteractionManager;
19 @protocol ChromeIdentityInteractionManagerDelegate; 19 @protocol ChromeIdentityInteractionManagerDelegate;
20 @class NSArray; 20 @class NSArray;
21 @class NSDate; 21 @class NSDate;
22 @class NSDictionary; 22 @class NSDictionary;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // UIApplicationDelegate application:openURL:options:. 95 // UIApplicationDelegate application:openURL:options:.
96 virtual bool HandleApplicationOpenURL(UIApplication* application, 96 virtual bool HandleApplicationOpenURL(UIApplication* application,
97 NSURL* url, 97 NSURL* url,
98 NSDictionary* options); 98 NSDictionary* options);
99 99
100 // Dismisses all the dialogs created by the abstracted flows. 100 // Dismisses all the dialogs created by the abstracted flows.
101 virtual void DismissDialogs(); 101 virtual void DismissDialogs();
102 102
103 // Returns a new account details controller to present. A cancel button is 103 // Returns a new account details controller to present. A cancel button is
104 // present as leading navigation item. 104 // present as leading navigation item.
105 virtual base::scoped_nsobject<UINavigationController> NewAccountDetails( 105 virtual UINavigationController* CreateAccountDetailsController(
msarda 2017/06/08 23:21:06 It is not clear to me how this changes will be rol
stkhapugin 2017/06/12 15:49:31 discussed offline, using 5 CLs
106 ChromeIdentity* identity, 106 ChromeIdentity* identity,
107 id<ChromeIdentityBrowserOpener> browser_opener); 107 id<ChromeIdentityBrowserOpener> browser_opener);
108 108
109 // Returns a new Web and App Setting Details controller to present. 109 // Returns a new Web and App Setting Details controller to present.
110 virtual base::scoped_nsobject<UINavigationController> 110 virtual UINavigationController* CreateWebAndAppSettingDetailsController(
111 NewWebAndAppSettingDetails(ChromeIdentity* identity, 111 ChromeIdentity* identity,
112 id<ChromeIdentityBrowserOpener> browser_opener); 112 id<ChromeIdentityBrowserOpener> browser_opener);
113 113
114 // Returns a new ChromeIdentityInteractionManager with |delegate| as its 114 // Returns a new ChromeIdentityInteractionManager with |delegate| as its
115 // delegate. 115 // delegate.
116 virtual base::scoped_nsobject<ChromeIdentityInteractionManager> 116 virtual ChromeIdentityInteractionManager*
117 NewChromeIdentityInteractionManager( 117 CreateChromeIdentityInteractionManager(
118 ios::ChromeBrowserState* browser_state, 118 ios::ChromeBrowserState* browser_state,
119 id<ChromeIdentityInteractionManagerDelegate> delegate) const; 119 id<ChromeIdentityInteractionManagerDelegate> delegate) const;
120 120
121 // Returns YES if |identity| is valid and if the service has it in its list of 121 // Returns YES if |identity| is valid and if the service has it in its list of
122 // identitites. 122 // identitites.
123 virtual bool IsValidIdentity(ChromeIdentity* identity) const; 123 virtual bool IsValidIdentity(ChromeIdentity* identity) const;
124 124
125 // Returns the chrome identity having the email equal to |email| or |nil| if 125 // Returns the chrome identity having the email equal to |email| or |nil| if
126 // no matching identity is found. 126 // no matching identity is found.
127 virtual ChromeIdentity* GetIdentityWithEmail(const std::string& email) const; 127 virtual ChromeIdentity* GetIdentityWithEmail(const std::string& email) const;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 private: 220 private:
221 base::ObserverList<Observer, true> observer_list_; 221 base::ObserverList<Observer, true> observer_list_;
222 222
223 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityService); 223 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityService);
224 }; 224 };
225 225
226 } // namespace ios 226 } // namespace ios
227 227
228 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_ 228 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698