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

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: fixcaller 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 _
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_error_handler.h ('k') | chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698