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_POWER_ORIGIN_POWER_MAP_OBSERVER_H_ | |
| 6 #define COMPONENTS_POWER_ORIGIN_POWER_MAP_OBSERVER_H_ | |
| 7 | |
| 8 namespace power { | |
| 9 | |
| 10 class OriginPowerMapObserver { | |
| 11 public: | |
| 12 // Called when the origin power map is finished updating. | |
| 13 virtual void OnPowerConsumptionUpdated() = 0; | |
|
Bernhard Bauer
2014/08/29 19:16:31
An alternative to a one-method interface is to use
Daniel Nishi
2014/09/02 16:30:30
Would this require weak ptr factories for everyone
Bernhard Bauer
2014/09/02 16:39:57
No, because the observer would destroy its Subscri
Daniel Nishi
2014/09/02 17:10:08
Ah, I understand.
I've updated the implementation
| |
| 14 }; | |
| 15 | |
| 16 } // namespace power | |
| 17 | |
| 18 #endif // COMPONENTS_POWER_ORIGIN_POWER_MAP_OBSERVER_H_ | |
| OLD | NEW |