| 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 CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class Observer { | 63 class Observer { |
| 64 public: | 64 public: |
| 65 virtual ~Observer() {} | 65 virtual ~Observer() {} |
| 66 | 66 |
| 67 // Raised when merge session state changes. | 67 // Raised when merge session state changes. |
| 68 virtual void OnSessionRestoreStateChanged(Profile* user_profile, | 68 virtual void OnSessionRestoreStateChanged(Profile* user_profile, |
| 69 SessionRestoreState state) {} | 69 SessionRestoreState state) {} |
| 70 | 70 |
| 71 // Raised when a new OAuth2 refresh token is avaialble. | 71 // Raised when a new OAuth2 refresh token is available. |
| 72 virtual void OnNewRefreshTokenAvaiable(Profile* user_profile) {} | 72 virtual void OnNewRefreshTokenAvaiable(Profile* user_profile) {} |
| 73 | 73 |
| 74 // Raised when session's GAIA credentials (SID+LSID) are available to | 74 // Raised when session's GAIA credentials (SID+LSID) are available to |
| 75 // other signed in services. | 75 // other signed in services. |
| 76 virtual void OnSessionAuthenticated(Profile* user_profile) {} | 76 virtual void OnSessionAuthenticated(Profile* user_profile) {} |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 explicit OAuth2LoginManager(Profile* user_profile); | 79 explicit OAuth2LoginManager(Profile* user_profile); |
| 80 ~OAuth2LoginManager() override; | 80 ~OAuth2LoginManager() override; |
| 81 | 81 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we | 253 // TODO(zelidrag|gspencer): Figure out how to get rid of ProfileHelper so we |
| 254 // can change the line below to base::ObserverList<Observer, true>. | 254 // can change the line below to base::ObserverList<Observer, true>. |
| 255 base::ObserverList<Observer, false> observer_list_; | 255 base::ObserverList<Observer, false> observer_list_; |
| 256 | 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); | 257 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 } // namespace chromeos | 260 } // namespace chromeos |
| 261 | 261 |
| 262 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ | 262 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_MANAGER_H_ |
| OLD | NEW |