summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/quota/StorageErrorCallback.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/quota/StorageErrorCallback.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/Modules/quota/StorageErrorCallback.h')
-rw-r--r--Source/WebCore/Modules/quota/StorageErrorCallback.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/Source/WebCore/Modules/quota/StorageErrorCallback.h b/Source/WebCore/Modules/quota/StorageErrorCallback.h
index ffce7b675..2c980426d 100644
--- a/Source/WebCore/Modules/quota/StorageErrorCallback.h
+++ b/Source/WebCore/Modules/quota/StorageErrorCallback.h
@@ -28,13 +28,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageErrorCallback_h
-#define StorageErrorCallback_h
+#pragma once
#if ENABLE(QUOTA)
#include "ScriptExecutionContext.h"
-#include <wtf/PassOwnPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
@@ -50,16 +48,9 @@ public:
class CallbackTask : public ScriptExecutionContext::Task {
public:
- static PassOwnPtr<CallbackTask> create(PassRefPtr<StorageErrorCallback> callback, ExceptionCode ec)
- {
- return adoptPtr(new CallbackTask(callback, ec));
- }
-
- virtual void performTask(ScriptExecutionContext*);
+ CallbackTask(StorageErrorCallback*, ExceptionCode);
private:
- CallbackTask(PassRefPtr<StorageErrorCallback>, ExceptionCode);
-
RefPtr<StorageErrorCallback> m_callback;
ExceptionCode m_ec;
};
@@ -68,5 +59,3 @@ public:
} // namespace WebCore
#endif // ENABLE(QUOTA)
-
-#endif // StorageErrorCallback_h