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

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: Histogram 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 RapporService.
13 // An observer must be added, removed, and notified on the same thread.
14 class DailyObserver {
15 public:
Alexei Svitkine (slow) 2014/09/05 20:00:33 Nit: Indent 1 more, same below.
Steven Holte 2014/09/05 21:15:07 Done.
16 // Called when daily metrics should be collected.
17 virtual void OnDailyInterval() = 0;
18
19 protected:
20 DailyObserver();
21 virtual ~DailyObserver();
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