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 COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
15 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
16 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
17 #include "components/keyed_service/core/keyed_service.h" | 18 #include "components/keyed_service/core/keyed_service.h" |
18 #include "components/signin/core/browser/account_info.h" | 19 #include "components/signin/core/browser/account_info.h" |
19 #include "google_apis/gaia/gaia_auth_util.h" | 20 #include "google_apis/gaia/gaia_auth_util.h" |
20 | 21 |
21 | 22 |
22 class PrefService; | 23 class PrefService; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void SetMigrationState(AccountIdMigrationState state); | 148 void SetMigrationState(AccountIdMigrationState state); |
148 | 149 |
149 SigninClient* signin_client_; // Not owned. | 150 SigninClient* signin_client_; // Not owned. |
150 std::map<std::string, AccountState> accounts_; | 151 std::map<std::string, AccountState> accounts_; |
151 base::ObserverList<Observer> observer_list_; | 152 base::ObserverList<Observer> observer_list_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService); | 154 DISALLOW_COPY_AND_ASSIGN(AccountTrackerService); |
154 }; | 155 }; |
155 | 156 |
156 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ | 157 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_ACCOUNT_TRACKER_SERVICE_H_ |
OLD | NEW |