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

Unified Diff: Source/modules/quota/StorageInfo.h

Issue 158133003: Move quota module to oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert having empty destructors in header files. Created 6 years, 10 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: Source/modules/quota/StorageInfo.h
diff --git a/Source/modules/quota/StorageInfo.h b/Source/modules/quota/StorageInfo.h
index c6dbf85e7c16297b33c5cf012114afe1dfd22be5..716a030df9268630264f394ae76586af24ab45c2 100644
--- a/Source/modules/quota/StorageInfo.h
+++ b/Source/modules/quota/StorageInfo.h
@@ -32,17 +32,19 @@
#define StorageInfo_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
namespace WebCore {
-class StorageInfo FINAL : public RefCounted<StorageInfo>, public ScriptWrappable {
+class StorageInfo FINAL : public RefCountedWillBeGarbageCollectedFinalized<StorageInfo>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<StorageInfo> create(unsigned long long usage, unsigned long long quota)
+ static PassRefPtrWillBeRawPtr<StorageInfo> create(unsigned long long usage, unsigned long long quota)
{
- return adoptRef(new StorageInfo(usage, quota));
+ return adoptRefWillBeNoop(new StorageInfo(usage, quota));
}
unsigned long long usage() const { return m_usage; }
@@ -50,6 +52,8 @@ public:
~StorageInfo();
+ void trace(Visitor*) { }
+
private:
StorageInfo(unsigned long long usage, unsigned long long quota);

Powered by Google App Engine
This is Rietveld 408576698