diff options
Diffstat (limited to 'Source/WebCore/Modules/quota/StorageQuota.h')
-rw-r--r-- | Source/WebCore/Modules/quota/StorageQuota.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/Modules/quota/StorageQuota.h b/Source/WebCore/Modules/quota/StorageQuota.h index 26504f976..7c8d98bb2 100644 --- a/Source/WebCore/Modules/quota/StorageQuota.h +++ b/Source/WebCore/Modules/quota/StorageQuota.h @@ -28,12 +28,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef StorageQuota_h -#define StorageQuota_h +#pragma once #if ENABLE(QUOTA) -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> namespace WebCore { @@ -50,14 +48,14 @@ public: Persistent, }; - static PassRefPtr<StorageQuota> create(Type type) + static Ref<StorageQuota> create(Type type) { - return adoptRef(new StorageQuota(type)); + return adoptRef(*new StorageQuota(type)); } - void queryUsageAndQuota(ScriptExecutionContext*, PassRefPtr<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>); + void queryUsageAndQuota(ScriptExecutionContext&, RefPtr<StorageUsageCallback>&&, RefPtr<StorageErrorCallback>&&); - void requestQuota(ScriptExecutionContext*, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>); + void requestQuota(ScriptExecutionContext&, unsigned long long newQuotaInBytes, RefPtr<StorageQuotaCallback>&&, RefPtr<StorageErrorCallback>&&); ~StorageQuota(); @@ -69,5 +67,3 @@ private: } // namespace WebCore #endif // ENABLE(QUOTA) - -#endif // StorageQuota_h |