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

Unified Diff: Source/modules/battery/BatteryDispatcher.h

Issue 619383002: Move PlatformEventDispatcher implementations to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix non-Oilpan allocation of DeviceLightDispatcher singleton Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/PlatformEventDispatcher.cpp ('k') | Source/modules/battery/BatteryDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/BatteryDispatcher.h
diff --git a/Source/modules/battery/BatteryDispatcher.h b/Source/modules/battery/BatteryDispatcher.h
index f1a477b99961c3f5486d3ed614ea2b2d639371fa..4944e22477faf65f816664dd9f28780393a5674d 100644
--- a/Source/modules/battery/BatteryDispatcher.h
+++ b/Source/modules/battery/BatteryDispatcher.h
@@ -14,7 +14,8 @@ namespace blink {
class WebBatteryStatus;
-class BatteryDispatcher FINAL : public PlatformEventDispatcher, public WebBatteryStatusListener {
+class BatteryDispatcher final : public GarbageCollectedFinalized<BatteryDispatcher>, public PlatformEventDispatcher, public WebBatteryStatusListener {
+ USING_GARBAGE_COLLECTED_MIXIN(BatteryDispatcher);
public:
static BatteryDispatcher& instance();
virtual ~BatteryDispatcher();
@@ -22,16 +23,18 @@ public:
BatteryStatus* latestData();
// Inherited from WebBatteryStatusListener.
- virtual void updateBatteryStatus(const WebBatteryStatus&) OVERRIDE;
+ virtual void updateBatteryStatus(const WebBatteryStatus&) override;
+
+ virtual void trace(Visitor*) override;
private:
BatteryDispatcher();
// Inherited from PlatformEventDispatcher.
- virtual void startListening() OVERRIDE;
- virtual void stopListening() OVERRIDE;
+ virtual void startListening() override;
+ virtual void stopListening() override;
- Persistent<BatteryStatus> m_batteryStatus;
+ Member<BatteryStatus> m_batteryStatus;
};
} // namespace blink
« no previous file with comments | « Source/core/frame/PlatformEventDispatcher.cpp ('k') | Source/modules/battery/BatteryDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698