Chromium Code Reviews| Index: Source/modules/quota/DeprecatedStorageQuota.h |
| diff --git a/Source/modules/quota/DeprecatedStorageQuota.h b/Source/modules/quota/DeprecatedStorageQuota.h |
| index 793644c3096ce7dcfb5382da6b00df7035d8df2e..3fe8211154f61ceb9a359091bfa21d92bea66e71 100644 |
| --- a/Source/modules/quota/DeprecatedStorageQuota.h |
| +++ b/Source/modules/quota/DeprecatedStorageQuota.h |
| @@ -32,6 +32,8 @@ |
| #define DeprecatedStorageQuota_h |
| #include "bindings/v8/ScriptWrappable.h" |
| +#include "heap/Handle.h" |
| +#include "heap/ThreadState.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| @@ -42,29 +44,34 @@ class StorageErrorCallback; |
| class StorageQuotaCallback; |
| class StorageUsageCallback; |
| -class DeprecatedStorageQuota : public RefCounted<DeprecatedStorageQuota>, public ScriptWrappable { |
| +class DeprecatedStorageQuota : public RefCountedWillBeGarbageCollectedFinalized<DeprecatedStorageQuota>, public ScriptWrappable { |
| + DECLARE_GC_INFO; |
| public: |
| enum Type { |
| Temporary, |
| Persistent, |
| }; |
| - static PassRefPtr<DeprecatedStorageQuota> create(Type type) |
| + static PassRefPtrWillBeRawPtr<DeprecatedStorageQuota> create(Type type) |
| { |
| - return adoptRef(new DeprecatedStorageQuota(type)); |
| + return adoptRefWillBeNoop(new DeprecatedStorageQuota(type)); |
| } |
| void queryUsageAndQuota(ExecutionContext*, PassOwnPtr<StorageUsageCallback>, PassOwnPtr<StorageErrorCallback>); |
| void requestQuota(ExecutionContext*, unsigned long long newQuotaInBytes, PassOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageErrorCallback>); |
| - ~DeprecatedStorageQuota(); |
| + ~DeprecatedStorageQuota() { } |
|
tkent
2014/02/10 08:27:40
Ditto.
sof
2014/02/10 09:07:19
Reverted.
|
| + |
| + void trace(Visitor*) { } |
| private: |
| explicit DeprecatedStorageQuota(Type); |
| Type m_type; |
| }; |
| +USED_FROM_MULTIPLE_THREADS(DeprecatedStorageQuota); |
| + |
| } // namespace WebCore |
| #endif // DeprecatedStorageQuota_h |