| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 namespace identity_constants { | 34 namespace identity_constants { |
| 35 extern const char kInvalidClientId[]; | 35 extern const char kInvalidClientId[]; |
| 36 extern const char kInvalidScopes[]; | 36 extern const char kInvalidScopes[]; |
| 37 extern const char kAuthFailure[]; | 37 extern const char kAuthFailure[]; |
| 38 extern const char kNoGrant[]; | 38 extern const char kNoGrant[]; |
| 39 extern const char kUserRejected[]; | 39 extern const char kUserRejected[]; |
| 40 extern const char kUserNotSignedIn[]; | 40 extern const char kUserNotSignedIn[]; |
| 41 extern const char kInteractionRequired[]; | 41 extern const char kInteractionRequired[]; |
| 42 extern const char kInvalidRedirect[]; | 42 extern const char kInvalidRedirect[]; |
| 43 extern const char kOffTheRecord[]; | 43 extern const char kOffTheRecord[]; |
| 44 extern const char kPageLoadFailure[]; |
| 44 } // namespace identity_constants | 45 } // namespace identity_constants |
| 45 | 46 |
| 46 // identity.getAuthToken fetches an OAuth 2 function for the | 47 // identity.getAuthToken fetches an OAuth 2 function for the |
| 47 // caller. The request has three sub-flows: non-interactive, | 48 // caller. The request has three sub-flows: non-interactive, |
| 48 // interactive, and sign-in. | 49 // interactive, and sign-in. |
| 49 // | 50 // |
| 50 // In the non-interactive flow, getAuthToken requests a token from | 51 // In the non-interactive flow, getAuthToken requests a token from |
| 51 // GAIA. GAIA may respond with a token, an error, or "consent | 52 // GAIA. GAIA may respond with a token, an error, or "consent |
| 52 // required". In the consent required cases, getAuthToken proceeds to | 53 // required". In the consent required cases, getAuthToken proceeds to |
| 53 // the second, interactive phase. | 54 // the second, interactive phase. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 IdentityMintRequestQueue mint_queue_; | 278 IdentityMintRequestQueue mint_queue_; |
| 278 CachedTokens token_cache_; | 279 CachedTokens token_cache_; |
| 279 }; | 280 }; |
| 280 | 281 |
| 281 template <> | 282 template <> |
| 282 void ProfileKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies(); | 283 void ProfileKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies(); |
| 283 | 284 |
| 284 } // namespace extensions | 285 } // namespace extensions |
| 285 | 286 |
| 286 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ | 287 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ |
| OLD | NEW |