diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/quota/StorageInfo.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/quota/StorageInfo.h')
-rw-r--r-- | Source/WebCore/Modules/quota/StorageInfo.h | 14 |
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 |