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_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "chrome/browser/supervised_user/child_accounts/family_info_fetcher.h" | 17 #include "chrome/browser/supervised_user/child_accounts/family_info_fetcher.h" |
18 #include "chrome/browser/supervised_user/supervised_user_service.h" | 18 #include "chrome/browser/supervised_user/supervised_user_service.h" |
19 #include "components/keyed_service/core/keyed_service.h" | 19 #include "components/keyed_service/core/keyed_service.h" |
20 #include "components/signin/core/browser/account_tracker_service.h" | 20 #include "components/signin/core/browser/account_tracker_service.h" |
21 #include "net/base/backoff_entry.h" | 21 #include "net/base/backoff_entry.h" |
22 | 22 |
23 namespace base { | |
24 class FilePath; | |
25 } | |
26 | |
27 namespace user_prefs { | 23 namespace user_prefs { |
28 class PrefRegistrySyncable; | 24 class PrefRegistrySyncable; |
29 } | 25 } |
30 | 26 |
31 class Profile; | 27 class Profile; |
32 | 28 |
33 // This class handles detection of child accounts (on sign-in as well as on | 29 // This class handles detection of child accounts (on sign-in as well as on |
34 // browser restart), and triggers the appropriate behavior (e.g. enable the | 30 // browser restart), and triggers the appropriate behavior (e.g. enable the |
35 // supervised user experience, fetch information about the parent(s)). | 31 // supervised user experience, fetch information about the parent(s)). |
36 class ChildAccountService : public KeyedService, | 32 class ChildAccountService : public KeyedService, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 95 |
100 // Callbacks to run when the user status becomes known. | 96 // Callbacks to run when the user status becomes known. |
101 std::vector<base::Closure> status_received_callback_list_; | 97 std::vector<base::Closure> status_received_callback_list_; |
102 | 98 |
103 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; | 99 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; |
104 | 100 |
105 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); | 101 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); |
106 }; | 102 }; |
107 | 103 |
108 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ | 104 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ |
OLD | NEW |