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

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

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' Created 6 years, 9 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/modules/battery/BatteryManager.cpp ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/NavigatorBattery.h
diff --git a/Source/modules/battery/NavigatorBattery.h b/Source/modules/battery/NavigatorBattery.h
index 4e500f8fb2f9b7a72cb50097db57fdaa94138bf9..783a68a9455399f35c8c695ea6ade30d364c325f 100644
--- a/Source/modules/battery/NavigatorBattery.h
+++ b/Source/modules/battery/NavigatorBattery.h
@@ -6,6 +6,7 @@
#define NavigatorBattery_h
#include "core/frame/Navigator.h"
+#include "heap/Handle.h"
#include "platform/Supplementable.h"
namespace WebCore {
@@ -13,7 +14,8 @@ namespace WebCore {
class BatteryManager;
class Navigator;
-class NavigatorBattery : public Supplement<Navigator> {
+class NavigatorBattery FINAL : public NoBaseWillBeGarbageCollectedFinalized<NavigatorBattery>, public WillBeHeapSupplement<Navigator> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBattery);
public:
virtual ~NavigatorBattery();
@@ -22,11 +24,13 @@ public:
static BatteryManager* battery(Navigator&);
BatteryManager* batteryManager(Navigator&);
+ void trace(Visitor*);
+
private:
NavigatorBattery();
static const char* supplementName();
- RefPtr<BatteryManager> m_batteryManager;
+ RefPtrWillBeMember<BatteryManager> m_batteryManager;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/battery/BatteryManager.cpp ('k') | Source/modules/battery/NavigatorBattery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698