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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void ClearFirstCustodianPrefs(); | 89 void ClearFirstCustodianPrefs(); |
90 void ClearSecondCustodianPrefs(); | 90 void ClearSecondCustodianPrefs(); |
91 | 91 |
92 // Owns us via the KeyedService mechanism. | 92 // Owns us via the KeyedService mechanism. |
93 Profile* profile_; | 93 Profile* profile_; |
94 | 94 |
95 bool active_; | 95 bool active_; |
96 | 96 |
97 scoped_ptr<FamilyInfoFetcher> family_fetcher_; | 97 scoped_ptr<FamilyInfoFetcher> family_fetcher_; |
98 // If fetching the family info fails, retry with exponential backoff. | 98 // If fetching the family info fails, retry with exponential backoff. |
99 base::OneShotTimer<ChildAccountService> family_fetch_timer_; | 99 base::OneShotTimer family_fetch_timer_; |
100 net::BackoffEntry family_fetch_backoff_; | 100 net::BackoffEntry family_fetch_backoff_; |
101 | 101 |
102 // Callbacks to run when the user status becomes known. | 102 // Callbacks to run when the user status becomes known. |
103 std::vector<base::Closure> status_received_callback_list_; | 103 std::vector<base::Closure> status_received_callback_list_; |
104 | 104 |
105 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; | 105 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); | 107 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ | 110 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H
_ |
OLD | NEW |