| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 IdentitySigninFlow(Delegate* delegate, | 35 IdentitySigninFlow(Delegate* delegate, |
| 36 Profile* profile); | 36 Profile* profile); |
| 37 virtual ~IdentitySigninFlow(); | 37 virtual ~IdentitySigninFlow(); |
| 38 | 38 |
| 39 // Starts the flow. Should only be called once. | 39 // Starts the flow. Should only be called once. |
| 40 void Start(); | 40 void Start(); |
| 41 | 41 |
| 42 // OAuth2TokenService::Observer implementation: | 42 // OAuth2TokenService::Observer implementation: |
| 43 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 43 virtual void OnRefreshTokenAvailable(const std::string& account_id) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 Delegate* delegate_; | 46 Delegate* delegate_; |
| 47 Profile* profile_; | 47 Profile* profile_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(IdentitySigninFlow); | 49 DISALLOW_COPY_AND_ASSIGN(IdentitySigninFlow); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace extensions | 52 } // namespace extensions |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_SIGNIN_FLOW_H_ |
| OLD | NEW |