OLD | NEW |
---|---|
(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_ | |
OLD | NEW |