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

Side by Side Diff: components/ukm/ukm_rotation_scheduler.h

Issue 2770853002: Create Ukm ReportingService implementation. (Closed)
Patch Set: Also revert datatracker unittest change Created 3 years, 9 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
« no previous file with comments | « components/ukm/ukm_reporting_service.cc ('k') | components/ukm/ukm_rotation_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_UKM_METRICS_REPORTING_SCHEDULER_H_
6 #define COMPONENTS_UKM_METRICS_REPORTING_SCHEDULER_H_
7
8 #include "base/time/time.h"
9 #include "components/metrics/metrics_rotation_scheduler.h"
10
11 namespace ukm {
12
13 // Scheduler to drive a UkmService object's log rotations.
14 class UkmRotationScheduler : public metrics::MetricsRotationScheduler {
15 public:
16 // Creates UkmRotationScheduler object with the given |rotation_callback|
17 // callback to call when log rotation should happen and |interval_callback|
18 // to determine the interval between rotations in steady state.
19 UkmRotationScheduler(
20 const base::Closure& rotation_callback,
21 const base::Callback<base::TimeDelta(void)>& interval_callback);
22 ~UkmRotationScheduler() override;
23
24 private:
25 // Record the init sequence order histogram.
26 void LogMetricsInitSequence(InitSequence sequence) override;
27
28 DISALLOW_COPY_AND_ASSIGN(UkmRotationScheduler);
29 };
30
31 } // namespace ukm
32
33 #endif // COMPONENTS_UKM_METRICS_REPORTING_SCHEDULER_H_
OLDNEW
« no previous file with comments | « components/ukm/ukm_reporting_service.cc ('k') | components/ukm/ukm_rotation_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698