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

Side by Side Diff: components/power/origin_power_map_observer.h

Issue 519883002: Update the Website Settings page when the power consumption is updated. (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_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_
OLDNEW
« components/power/origin_power_map.h ('K') | « components/power/origin_power_map.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698