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

Unified Diff: third_party/WebKit/Source/platform/MemoryPurgeController.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/platform/MemoryPurgeController.h
diff --git a/third_party/WebKit/Source/platform/MemoryPurgeController.h b/third_party/WebKit/Source/platform/MemoryPurgeController.h
index a23fcc71fa4b741a113a8be762757ae0ddbb09a7..f1308a5f36145c0982d6c305e200b0811b7718f8 100644
--- a/third_party/WebKit/Source/platform/MemoryPurgeController.h
+++ b/third_party/WebKit/Source/platform/MemoryPurgeController.h
@@ -21,7 +21,7 @@ enum class DeviceKind {
// interface to be informed when they should reduce memory consumption.
// MemoryPurgeController assumes that subclasses of MemoryPurgeClient are
// WillBes.
-class PLATFORM_EXPORT MemoryPurgeClient : public WillBeGarbageCollectedMixin {
+class PLATFORM_EXPORT MemoryPurgeClient : public GarbageCollectedMixin {
public:
virtual ~MemoryPurgeClient() { }
@@ -36,13 +36,12 @@ public:
// for reducing memory consumption and notifies its clients.
// Since we want to control memory per tab, MemoryPurgeController is owned by
// Page.
-class PLATFORM_EXPORT MemoryPurgeController final : public NoBaseWillBeGarbageCollectedFinalized<MemoryPurgeController> {
- USING_FAST_MALLOC_WILL_BE_REMOVED(MemoryPurgeController);
+class PLATFORM_EXPORT MemoryPurgeController final : public GarbageCollectedFinalized<MemoryPurgeController> {
WTF_MAKE_NONCOPYABLE(MemoryPurgeController);
public:
static void onMemoryPressure(WebMemoryPressureLevel);
- static PassOwnPtrWillBeRawPtr<MemoryPurgeController> create()
+ static RawPtr<MemoryPurgeController> create()
{
return adoptPtrWillBeNoop(new MemoryPurgeController);
}
@@ -71,7 +70,7 @@ public:
private:
MemoryPurgeController();
- WillBeHeapHashSet<RawPtrWillBeWeakMember<MemoryPurgeClient>> m_clients;
+ HeapHashSet<WeakMember<MemoryPurgeClient>> m_clients;
DeviceKind m_deviceKind;
};
« no previous file with comments | « third_party/WebKit/Source/platform/LifecycleObserver.h ('k') | third_party/WebKit/Source/platform/PopupMenu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698