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 "chrome/common/net/gaia/google_service_auth_error.h" | |
10 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
11 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
12 #include "content/public/browser/notification_types.h" | 11 #include "content/public/browser/notification_types.h" |
| 12 #include "google_apis/gaia/google_service_auth_error.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // The signin flow logic is spread across several classes with varying | 16 // The signin flow logic is spread across several classes with varying |
17 // responsibilities: | 17 // responsibilities: |
18 // | 18 // |
19 // SigninTracker (this class) - This class listens to notifications from various | 19 // SigninTracker (this class) - This class listens to notifications from various |
20 // services (SigninManager, ProfileSyncService, etc) and coalesces them into | 20 // services (SigninManager, ProfileSyncService, etc) and coalesces them into |
21 // notifications for the UI layer. This is the class that encapsulates the logic | 21 // notifications for the UI layer. This is the class that encapsulates the logic |
22 // that determines whether a user is fully logged in or not, and exposes | 22 // that determines whether a user is fully logged in or not, and exposes |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Set to true when SigninManager has validated our credentials. | 112 // Set to true when SigninManager has validated our credentials. |
113 bool credentials_valid_; | 113 bool credentials_valid_; |
114 | 114 |
115 // Used to listen to notifications from the SigninManager. | 115 // Used to listen to notifications from the SigninManager. |
116 content::NotificationRegistrar registrar_; | 116 content::NotificationRegistrar registrar_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(SigninTracker); | 118 DISALLOW_COPY_AND_ASSIGN(SigninTracker); |
119 }; | 119 }; |
120 | 120 |
121 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ | 121 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_ |
OLD | NEW |