namespace blink {
-PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> StorageQuotaClientImpl::create()
+StorageQuotaClientImpl::StorageQuotaClientImpl()
{
- return adoptPtrWillBeNoop(new StorageQuotaClientImpl());
}
StorageQuotaClientImpl::~StorageQuotaClientImpl()
if (executionContext->isDocument()) {
Document* document = toDocument(executionContext);
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
- OwnPtrWillBeRawPtr<StorageQuotaCallbacks> callbacks = DeprecatedStorageQuotaCallbacksImpl::create(successCallback, errorCallback);
- webFrame->client()->requestStorageQuota(webFrame, storageType, newQuotaInBytes, callbacks.release());
+ StorageQuotaCallbacks* callbacks = DeprecatedStorageQuotaCallbacksImpl::create(successCallback, errorCallback);
+ webFrame->client()->requestStorageQuota(webFrame, storageType, newQuotaInBytes, callbacks);
} else {
// Requesting quota in Worker is not supported.
executionContext->postTask(StorageErrorCallback::CallbackTask::create(errorCallback, NotSupportedError));
if (scriptState->executionContext()->isDocument()) {
Document* document = toDocument(scriptState->executionContext());
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
- OwnPtrWillBeRawPtr<StorageQuotaCallbacks> callbacks = StorageQuotaCallbacksImpl::create(resolver);
- webFrame->client()->requestStorageQuota(webFrame, WebStorageQuotaTypePersistent, newQuotaInBytes, callbacks.release());
+ StorageQuotaCallbacks* callbacks = StorageQuotaCallbacksImpl::create(resolver);
+ webFrame->client()->requestStorageQuota(webFrame, WebStorageQuotaTypePersistent, newQuotaInBytes, callbacks);
} else {
// Requesting quota in Worker is not supported.
resolver->reject(DOMError::create(NotSupportedError));
return promise;
}
-StorageQuotaClientImpl::StorageQuotaClientImpl()
-{
-}
-
} // namespace blink