Chromium Code Reviews| Index: Source/modules/quota/DeprecatedStorageInfo.h |
| diff --git a/Source/modules/quota/DeprecatedStorageInfo.h b/Source/modules/quota/DeprecatedStorageInfo.h |
| index 57e6c22a1f67b6e530f1d7e301aafd3b61f49b45..a5b82eb6f8faab0b76ad05284c5992120260ea54 100644 |
| --- a/Source/modules/quota/DeprecatedStorageInfo.h |
| +++ b/Source/modules/quota/DeprecatedStorageInfo.h |
| @@ -32,43 +32,47 @@ |
| #define DeprecatedStorageInfo_h |
| #include "bindings/v8/ScriptWrappable.h" |
| +#include "heap/Handle.h" |
| +#include "modules/quota/DeprecatedStorageQuota.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| #include "wtf/RefPtr.h" |
| namespace WebCore { |
| -class DeprecatedStorageQuota; |
| class ExecutionContext; |
| class StorageErrorCallback; |
| class StorageQuotaCallback; |
| class StorageUsageCallback; |
| -class DeprecatedStorageInfo : public RefCounted<DeprecatedStorageInfo>, public ScriptWrappable { |
| +class DeprecatedStorageInfo : public RefCountedWillBeGarbageCollectedFinalized<DeprecatedStorageInfo>, public ScriptWrappable { |
|
haraken
2014/02/10 01:34:58
Isn't USED_FROM_MULTIPLE_THREADS(DeprecatedStorage
sof
2014/02/10 07:35:12
It shouldn't be needed, as there are no Deprecated
haraken
2014/02/10 07:42:14
Thanks, but would you add USED_FROM_MULTIPLE_THREA
sof
2014/02/10 07:57:41
I would clearly add it if that's a possibility, bu
haraken
2014/02/10 08:15:23
I'm sorry, if it's on window, it shouldn't be touc
|
| + DECLARE_GC_INFO; |
| public: |
| enum { |
| TEMPORARY, |
| PERSISTENT, |
| }; |
| - static PassRefPtr<DeprecatedStorageInfo> create() |
| + static PassRefPtrWillBeRawPtr<DeprecatedStorageInfo> create() |
| { |
| - return adoptRef(new DeprecatedStorageInfo()); |
| + return adoptRefWillBeNoop(new DeprecatedStorageInfo()); |
| } |
| void queryUsageAndQuota(ExecutionContext*, int storageType, PassOwnPtr<StorageUsageCallback>, PassOwnPtr<StorageErrorCallback>); |
| void requestQuota(ExecutionContext*, int storageType, unsigned long long newQuotaInBytes, PassOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageErrorCallback>); |
| - ~DeprecatedStorageInfo(); |
| + ~DeprecatedStorageInfo() { } |
| + |
| + void trace(Visitor*); |
| private: |
| DeprecatedStorageInfo(); |
| DeprecatedStorageQuota* getStorageQuota(int storageType); |
| - mutable RefPtr<DeprecatedStorageQuota> m_temporaryStorage; |
| - mutable RefPtr<DeprecatedStorageQuota> m_persistentStorage; |
| + mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_temporaryStorage; |
| + mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_persistentStorage; |
| }; |
| } // namespace WebCore |