summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/quota/StorageInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/quota/StorageInfo.h')
-rw-r--r--Source/WebCore/Modules/quota/StorageInfo.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/Modules/quota/StorageInfo.h b/Source/WebCore/Modules/quota/StorageInfo.h
index dd50579bf..e56d7b054 100644
--- a/Source/WebCore/Modules/quota/StorageInfo.h
+++ b/Source/WebCore/Modules/quota/StorageInfo.h
@@ -28,12 +28,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageInfo_h
-#define StorageInfo_h
+#pragma once
#if ENABLE(QUOTA)
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
@@ -52,14 +50,14 @@ public:
PERSISTENT,
};
- static PassRefPtr<StorageInfo> create()
+ static Ref<StorageInfo> create()
{
- return adoptRef(new StorageInfo());
+ return adoptRef(*new StorageInfo());
}
- void queryUsageAndQuota(ScriptExecutionContext*, int storageType, PassRefPtr<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
+ void queryUsageAndQuota(ScriptExecutionContext&, int storageType, RefPtr<StorageUsageCallback>&&, RefPtr<StorageErrorCallback>&&);
- void requestQuota(ScriptExecutionContext*, int storageType, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
+ void requestQuota(ScriptExecutionContext&, int storageType, unsigned long long newQuotaInBytes, RefPtr<StorageQuotaCallback>&&, RefPtr<StorageErrorCallback>&&);
~StorageInfo();
@@ -75,5 +73,3 @@ private:
} // namespace WebCore
#endif // ENABLE(QUOTA)
-
-#endif // StorageInfo_h