| 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_SIGNIN_SIGNIN_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/sync/profile_sync_service_observer.h" | 8 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // SyncSetupHandler - This class is primarily responsible for interacting with | 26 // SyncSetupHandler - This class is primarily responsible for interacting with |
| 27 // the web UI for performing system login and sync configuration. Receives | 27 // the web UI for performing system login and sync configuration. Receives |
| 28 // callbacks from the UI when the user wishes to initiate a login, and | 28 // callbacks from the UI when the user wishes to initiate a login, and |
| 29 // translates system state (login errors, etc) into the appropriate calls into | 29 // translates system state (login errors, etc) into the appropriate calls into |
| 30 // the UI to reflect this status to the user. Various subclasses | 30 // the UI to reflect this status to the user. Various subclasses |
| 31 // (OptionsSyncSetupHandler and SyncPromoHandler provide different UIs to the | 31 // (OptionsSyncSetupHandler and SyncPromoHandler provide different UIs to the |
| 32 // user, but the core logic lies in the base SyncSetupHandler class). | 32 // user, but the core logic lies in the base SyncSetupHandler class). |
| 33 // | 33 // |
| 34 // LoginUIService - Our desktop UI flows rely on having only a single login flow | 34 // LoginUIService - Our desktop UI flows rely on having only a single login flow |
| 35 // visible to the user at once. This is achieved via LoginUIService (a | 35 // visible to the user at once. This is achieved via LoginUIService (a |
| 36 // ProfileKeyedService that keeps track of the currently visible login UI). | 36 // BrowserContextKeyedService that keeps track of the currently visible login UI
). |
| 37 // | 37 // |
| 38 // SigninManager - Records the currently-logged-in user and handles all | 38 // SigninManager - Records the currently-logged-in user and handles all |
| 39 // interaction with the GAIA backend during the signin process. Unlike | 39 // interaction with the GAIA backend during the signin process. Unlike |
| 40 // SigninTracker, SigninManager only knows about the GAIA login state and is | 40 // SigninTracker, SigninManager only knows about the GAIA login state and is |
| 41 // not aware of the state of any signed in services. | 41 // not aware of the state of any signed in services. |
| 42 // | 42 // |
| 43 // TokenService - Uses credentials provided by SigninManager to generate tokens | 43 // TokenService - Uses credentials provided by SigninManager to generate tokens |
| 44 // for all signed-in services in Chrome. | 44 // for all signed-in services in Chrome. |
| 45 // | 45 // |
| 46 // ProfileSyncService - Provides the external API for interacting with the | 46 // ProfileSyncService - Provides the external API for interacting with the |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Set to true when SigninManager has validated our credentials. | 120 // Set to true when SigninManager has validated our credentials. |
| 121 bool credentials_valid_; | 121 bool credentials_valid_; |
| 122 | 122 |
| 123 // Used to listen to notifications from the SigninManager. | 123 // Used to listen to notifications from the SigninManager. |
| 124 content::NotificationRegistrar registrar_; | 124 content::NotificationRegistrar registrar_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(SigninTracker); | 126 DISALLOW_COPY_AND_ASSIGN(SigninTracker); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ | 129 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ |
| OLD | NEW |