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

Side by Side Diff: components/variations/variations_request_scheduler_mobile.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, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_ 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_
6 #define COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_ 6 #define COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "components/variations/variations_request_scheduler.h" 9 #include "components/variations/variations_request_scheduler.h"
10 10
(...skipping 21 matching lines...) Expand all
32 OnAppEnterForegroundNoRun); 32 OnAppEnterForegroundNoRun);
33 FRIEND_TEST_ALL_PREFIXES(VariationsRequestSchedulerMobileTest, 33 FRIEND_TEST_ALL_PREFIXES(VariationsRequestSchedulerMobileTest,
34 OnAppEnterForegroundRun); 34 OnAppEnterForegroundRun);
35 FRIEND_TEST_ALL_PREFIXES(VariationsRequestSchedulerMobileTest, 35 FRIEND_TEST_ALL_PREFIXES(VariationsRequestSchedulerMobileTest,
36 OnAppEnterForegroundOnStartup); 36 OnAppEnterForegroundOnStartup);
37 37
38 // The local state instance that provides the last fetch time. 38 // The local state instance that provides the last fetch time.
39 PrefService* local_state_; 39 PrefService* local_state_;
40 40
41 // Timer used for triggering a delayed fetch for ScheduleFetch(). 41 // Timer used for triggering a delayed fetch for ScheduleFetch().
42 base::OneShotTimer<VariationsRequestSchedulerMobile> schedule_fetch_timer_; 42 base::OneShotTimer schedule_fetch_timer_;
43 43
44 // The time the last seed request was initiated. 44 // The time the last seed request was initiated.
45 base::Time last_request_time_; 45 base::Time last_request_time_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(VariationsRequestSchedulerMobile); 47 DISALLOW_COPY_AND_ASSIGN(VariationsRequestSchedulerMobile);
48 }; 48 };
49 49
50 } // namespace variations 50 } // namespace variations
51 51
52 #endif // COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_ 52 #endif // COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_MOBILE_H_
OLDNEW
« no previous file with comments | « components/variations/variations_request_scheduler.h ('k') | components/visitedlink/browser/visitedlink_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698