Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: chrome/browser/supervised_user/child_accounts/child_account_service.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixwindowslink+rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void ClearFirstCustodianPrefs(); 87 void ClearFirstCustodianPrefs();
88 void ClearSecondCustodianPrefs(); 88 void ClearSecondCustodianPrefs();
89 89
90 // Owns us via the KeyedService mechanism. 90 // Owns us via the KeyedService mechanism.
91 Profile* profile_; 91 Profile* profile_;
92 92
93 bool active_; 93 bool active_;
94 94
95 scoped_ptr<FamilyInfoFetcher> family_fetcher_; 95 scoped_ptr<FamilyInfoFetcher> family_fetcher_;
96 // If fetching the family info fails, retry with exponential backoff. 96 // If fetching the family info fails, retry with exponential backoff.
97 base::OneShotTimer<ChildAccountService> family_fetch_timer_; 97 base::OneShotTimer family_fetch_timer_;
98 net::BackoffEntry family_fetch_backoff_; 98 net::BackoffEntry family_fetch_backoff_;
99 99
100 // Callbacks to run when the user status becomes known. 100 // Callbacks to run when the user status becomes known.
101 std::vector<base::Closure> status_received_callback_list_; 101 std::vector<base::Closure> status_received_callback_list_;
102 102
103 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_; 103 base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(ChildAccountService); 105 DISALLOW_COPY_AND_ASSIGN(ChildAccountService);
106 }; 106 };
107 107
108 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H _ 108 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_CHILD_ACCOUNT_SERVICE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698