| 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_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // entire login process, even for multiple retries. Authenticator instance | 95 // entire login process, even for multiple retries. Authenticator instance |
| 96 // holds reference to login profile and is later used during fetching of | 96 // holds reference to login profile and is later used during fetching of |
| 97 // OAuth tokens. | 97 // OAuth tokens. |
| 98 // TODO(nkostylev): Cleanup after WebUI login migration is complete. | 98 // TODO(nkostylev): Cleanup after WebUI login migration is complete. |
| 99 virtual scoped_refptr<Authenticator> CreateAuthenticator( | 99 virtual scoped_refptr<Authenticator> CreateAuthenticator( |
| 100 LoginStatusConsumer* consumer) = 0; | 100 LoginStatusConsumer* consumer) = 0; |
| 101 | 101 |
| 102 // Restores authentication session after crash. | 102 // Restores authentication session after crash. |
| 103 virtual void RestoreAuthenticationSession(Profile* profile) = 0; | 103 virtual void RestoreAuthenticationSession(Profile* profile) = 0; |
| 104 | 104 |
| 105 // Stops background fetchers. | |
| 106 virtual void StopBackgroundFetchers() = 0; | |
| 107 | |
| 108 // Initialize RLZ. | 105 // Initialize RLZ. |
| 109 virtual void InitRlzDelayed(Profile* user_profile) = 0; | 106 virtual void InitRlzDelayed(Profile* user_profile) = 0; |
| 110 }; | 107 }; |
| 111 | 108 |
| 112 } // namespace chromeos | 109 } // namespace chromeos |
| 113 | 110 |
| 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |