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

Side by Side Diff: ios/chrome/browser/signin/signin_util.h

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios Created 3 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_ 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_
6 #define IOS_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_ 6 #define IOS_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_
7 7
8 #include <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 @class ChromeIdentity; 13 @class ChromeIdentity;
14 14
15 // Returns an NSArray of |scopes| as NSStrings. 15 // Returns an NSArray of |scopes| as NSStrings.
16 NSArray* GetScopeArray(const std::set<std::string>& scopes); 16 NSArray* GetScopeArray(const std::set<std::string>& scopes);
17 17
18 // Returns the canonicalized and sanitized user email for the given identity. 18 // Returns the canonicalized and sanitized user email for the given identity.
19 // Returns nil if the identity does not have any user email. 19 // Returns nil if the identity does not have any user email.
20 std::string GetCanonicalizedEmailForIdentity(ChromeIdentity* identity); 20 std::string GetCanonicalizedEmailForIdentity(ChromeIdentity* identity);
21 21
22 // Returns whether the given signin |error| should be handled. 22 // Returns whether the given signin |error| should be handled.
23 // 23 //
24 // Note that cancel errors and errors handled internally by the signin component 24 // Note that cancel errors and errors handled internally by the signin component
25 // should not be handled. 25 // should not be handled.
26 bool ShouldHandleSigninError(NSError* error); 26 bool ShouldHandleSigninError(NSError* error);
27 27
28 #endif // IOS_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_ 28 #endif // IOS_CHROME_BROWSER_SIGNIN_SIGNIN_UTIL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/signin/constants.h ('k') | ios/chrome/browser/suggestions/image_fetcher_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698