| OLD | NEW |
| 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 CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "google_apis/gaia/oauth2_token_service.h" | 12 #include "google_apis/gaia/oauth2_token_service.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 // IdentitySigninFlow is a controller class to do a sign-in flow for an | 18 // IdentitySigninFlow is a controller class to do a sign-in flow for an |
| 19 // interactive Identity API call. The UI is launched through the LoginUIService. | 19 // interactive Identity API call. The UI is launched through the LoginUIService. |
| 20 // When the flow completes, the delegate is notified, and on success will | 20 // When the flow completes, the delegate is notified, and on success will |
| 21 // be given an OAuth2 login refresh token. | 21 // be given an OAuth2 login refresh token. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 46 private: | 46 private: |
| 47 Delegate* delegate_; | 47 Delegate* delegate_; |
| 48 Profile* profile_; | 48 Profile* profile_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(IdentitySigninFlow); | 50 DISALLOW_COPY_AND_ASSIGN(IdentitySigninFlow); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace extensions | 53 } // namespace extensions |
| 54 | 54 |
| 55 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ |
| OLD | NEW |