| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONSTANTS_H_ | 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ | 6 #define IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // Error domain for authentication error. | 10 // Error domain for authentication error. |
| 11 extern NSString* kAuthenticationErrorDomain; | 11 extern NSString* kAuthenticationErrorDomain; |
| 12 | 12 |
| 13 // The key in the user info dictionary containing the GoogleServiceAuthError | 13 // The key in the user info dictionary containing the GoogleServiceAuthError |
| 14 // code. | 14 // code. |
| 15 extern NSString* kGoogleServiceAuthErrorState; | 15 extern NSString* kGoogleServiceAuthErrorState; |
| 16 | 16 |
| 17 typedef enum { | 17 typedef enum { |
| 18 // The error is wrapping a GoogleServiceAuthError. | 18 // The error is wrapping a GoogleServiceAuthError. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 namespace signin_ui { | 40 namespace signin_ui { |
| 41 | 41 |
| 42 // Completion callback for a sign-in operation. | 42 // Completion callback for a sign-in operation. |
| 43 // |success| is YES if the operation was successful. | 43 // |success| is YES if the operation was successful. |
| 44 typedef void (^CompletionCallback)(BOOL success); | 44 typedef void (^CompletionCallback)(BOOL success); |
| 45 | 45 |
| 46 } // namespace signin_ui | 46 } // namespace signin_ui |
| 47 | 47 |
| 48 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ | 48 #endif // IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_ |
| OLD | NEW |