Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / StorageQuotaClientImpl.cpp
index ca888c8..b8faf70 100644 (file)
@@ -50,9 +50,8 @@
 
 namespace blink {
 
-PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> StorageQuotaClientImpl::create()
+StorageQuotaClientImpl::StorageQuotaClientImpl()
 {
-    return adoptPtrWillBeNoop(new StorageQuotaClientImpl());
 }
 
 StorageQuotaClientImpl::~StorageQuotaClientImpl()
@@ -66,8 +65,8 @@ void StorageQuotaClientImpl::requestQuota(ExecutionContext* executionContext, We
     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));
@@ -82,8 +81,8 @@ ScriptPromise StorageQuotaClientImpl::requestPersistentQuota(ScriptState* script
     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));
@@ -92,8 +91,4 @@ ScriptPromise StorageQuotaClientImpl::requestPersistentQuota(ScriptState* script
     return promise;
 }
 
-StorageQuotaClientImpl::StorageQuotaClientImpl()
-{
-}
-
 } // namespace blink