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

Side by Side Diff: components/metrics/daily_observer.h

Issue 511623002: Add a mechanism for collecting Rappor samples on a daily interval. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_METRICS_DAILY_OBSERVER_H_
6 #define COMPONENTS_METRICS_DAILY_OBSERVER_H_
7
8 #include "base/macros.h"
9
10 namespace metrics {
11
12 // DailyObserver receives notifications from a DailyInterval.
Alexei Svitkine (slow) 2014/09/15 17:50:38 For an interface this simple, I suggest defining i
Steven Holte 2014/09/15 20:17:10 Done.
13 // Observers must be added before the DailyInterval begins checking time,
14 // and will be owned by the DailyInterval.
15 class DailyObserver {
16 public:
17 DailyObserver();
18 virtual ~DailyObserver();
19
20 // Called when daily metrics should be collected.
21 virtual void OnDailyInterval() = 0;
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(DailyObserver);
25 };
26
27 } // namespace metrics
28
29 #endif // COMPONENTS_METRICS_DAILY_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698