Chromium Code Reviews| 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 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_ | |
| OLD | NEW |