summaryrefslogtreecommitdiff
path: root/Source/web/StorageQuotaChromium.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/web/StorageQuotaChromium.cpp')
-rw-r--r--Source/web/StorageQuotaChromium.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/web/StorageQuotaChromium.cpp b/Source/web/StorageQuotaChromium.cpp
index f0b66e7ea..d8c73c2a7 100644
--- a/Source/web/StorageQuotaChromium.cpp
+++ b/Source/web/StorageQuotaChromium.cpp
@@ -37,7 +37,7 @@
#include "WebWorkerBase.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
-#include "core/dom/ScriptExecutionContext.h"
+#include "core/dom/ExecutionContext.h"
#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerThread.h"
#include "modules/quota/StorageErrorCallback.h"
@@ -51,22 +51,22 @@ using namespace WebKit;
namespace WebCore {
// FIXME: Implement this as StorageQuotaClient.
-void StorageQuota::requestQuota(ScriptExecutionContext* scriptExecutionContext, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback> successCallback, PassRefPtr<StorageErrorCallback> errorCallback)
+void StorageQuota::requestQuota(ExecutionContext* executionContext, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback> successCallback, PassRefPtr<StorageErrorCallback> errorCallback)
{
- ASSERT(scriptExecutionContext);
+ ASSERT(executionContext);
WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type);
if (storageType != WebStorageQuotaTypeTemporary && storageType != WebStorageQuotaTypePersistent) {
// Unknown storage type is requested.
- scriptExecutionContext->postTask(StorageErrorCallback::CallbackTask::create(errorCallback, NotSupportedError));
+ executionContext->postTask(StorageErrorCallback::CallbackTask::create(errorCallback, NotSupportedError));
return;
}
- if (scriptExecutionContext->isDocument()) {
- Document* document = toDocument(scriptExecutionContext);
+ if (executionContext->isDocument()) {
+ Document* document = toDocument(executionContext);
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame());
webFrame->client()->requestStorageQuota(webFrame, storageType, newQuotaInBytes, WebStorageQuotaCallbacksImpl::createLeakedPtr(successCallback, errorCallback));
} else {
// Requesting quota in Worker is not supported.
- scriptExecutionContext->postTask(StorageErrorCallback::CallbackTask::create(errorCallback, NotSupportedError));
+ executionContext->postTask(StorageErrorCallback::CallbackTask::create(errorCallback, NotSupportedError));
}
}