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

Side by Side Diff: Source/modules/battery/BatteryDispatcher.h

Issue 341053002: Oilpan: move BatteryStatus to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BatteryDispatcher_h 5 #ifndef BatteryDispatcher_h
6 #define BatteryDispatcher_h 6 #define BatteryDispatcher_h
7 7
8 #include "core/frame/DeviceEventDispatcherBase.h" 8 #include "core/frame/DeviceEventDispatcherBase.h"
9 #include "modules/battery/BatteryManager.h" 9 #include "modules/battery/BatteryManager.h"
10 #include "modules/battery/BatteryStatus.h" 10 #include "modules/battery/BatteryStatus.h"
(...skipping 15 matching lines...) Expand all
26 // Inherited from blink::WebBatteryStatusListener. 26 // Inherited from blink::WebBatteryStatusListener.
27 virtual void updateBatteryStatus(const blink::WebBatteryStatus&) OVERRIDE; 27 virtual void updateBatteryStatus(const blink::WebBatteryStatus&) OVERRIDE;
28 28
29 private: 29 private:
30 BatteryDispatcher(); 30 BatteryDispatcher();
31 31
32 // Inherited from DeviceEventDispatcherBase. 32 // Inherited from DeviceEventDispatcherBase.
33 virtual void startListening() OVERRIDE; 33 virtual void startListening() OVERRIDE;
34 virtual void stopListening() OVERRIDE; 34 virtual void stopListening() OVERRIDE;
35 35
36 RefPtr<BatteryStatus> m_batteryStatus; 36 RefPtrWillBePersistent<BatteryStatus> m_batteryStatus;
37 }; 37 };
38 38
39 } 39 }
40 40
41 #endif // BatteryDispatcher_h 41 #endif // BatteryDispatcher_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/battery/BatteryManager.h » ('j') | Source/modules/battery/BatteryManager.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698