| OLD | NEW |
| 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> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 UINavigationController* CreateAccountDetailsController( |
| 106 ChromeIdentity* identity, |
| 107 id<ChromeIdentityBrowserOpener> browser_opener); |
| 108 |
| 109 // Returns a new Web and App Setting Details controller to present. |
| 110 virtual UINavigationController* CreateWebAndAppSettingDetailsController( |
| 111 ChromeIdentity* identity, |
| 112 id<ChromeIdentityBrowserOpener> browser_opener); |
| 113 |
| 114 // Returns a new ChromeIdentityInteractionManager with |delegate| as its |
| 115 // delegate. |
| 116 virtual ChromeIdentityInteractionManager* |
| 117 CreateChromeIdentityInteractionManager( |
| 118 ios::ChromeBrowserState* browser_state, |
| 119 id<ChromeIdentityInteractionManagerDelegate> delegate) const; |
| 120 |
| 121 // Deprecated. Returns a new account details controller to present. A cancel |
| 122 // button is present as leading navigation item. |
| 105 virtual base::scoped_nsobject<UINavigationController> NewAccountDetails( | 123 virtual base::scoped_nsobject<UINavigationController> NewAccountDetails( |
| 106 ChromeIdentity* identity, | 124 ChromeIdentity* identity, |
| 107 id<ChromeIdentityBrowserOpener> browser_opener); | 125 id<ChromeIdentityBrowserOpener> browser_opener); |
| 108 | 126 |
| 109 // Returns a new Web and App Setting Details controller to present. | 127 // Deprecated. Returns a new Web and App Setting Details controller to |
| 128 // present. |
| 110 virtual base::scoped_nsobject<UINavigationController> | 129 virtual base::scoped_nsobject<UINavigationController> |
| 111 NewWebAndAppSettingDetails(ChromeIdentity* identity, | 130 NewWebAndAppSettingDetails(ChromeIdentity* identity, |
| 112 id<ChromeIdentityBrowserOpener> browser_opener); | 131 id<ChromeIdentityBrowserOpener> browser_opener); |
| 113 | 132 |
| 114 // Returns a new ChromeIdentityInteractionManager with |delegate| as its | 133 // Deprecated. Returns a new ChromeIdentityInteractionManager with |delegate| |
| 115 // delegate. | 134 // as its delegate. |
| 116 virtual base::scoped_nsobject<ChromeIdentityInteractionManager> | 135 virtual base::scoped_nsobject<ChromeIdentityInteractionManager> |
| 117 NewChromeIdentityInteractionManager( | 136 NewChromeIdentityInteractionManager( |
| 118 ios::ChromeBrowserState* browser_state, | 137 ios::ChromeBrowserState* browser_state, |
| 119 id<ChromeIdentityInteractionManagerDelegate> delegate) const; | 138 id<ChromeIdentityInteractionManagerDelegate> delegate) const; |
| 120 | 139 |
| 121 // Returns YES if |identity| is valid and if the service has it in its list of | 140 // Returns YES if |identity| is valid and if the service has it in its list of |
| 122 // identitites. | 141 // identitites. |
| 123 virtual bool IsValidIdentity(ChromeIdentity* identity) const; | 142 virtual bool IsValidIdentity(ChromeIdentity* identity) const; |
| 124 | 143 |
| 125 // Returns the chrome identity having the email equal to |email| or |nil| if | 144 // Returns the chrome identity having the email equal to |email| or |nil| if |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 238 |
| 220 private: | 239 private: |
| 221 base::ObserverList<Observer, true> observer_list_; | 240 base::ObserverList<Observer, true> observer_list_; |
| 222 | 241 |
| 223 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityService); | 242 DISALLOW_COPY_AND_ASSIGN(ChromeIdentityService); |
| 224 }; | 243 }; |
| 225 | 244 |
| 226 } // namespace ios | 245 } // namespace ios |
| 227 | 246 |
| 228 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_ | 247 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_CHROME_IDENTITY_SERVICE_H_ |
| OLD | NEW |