| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "IDBFactoryBackendProxy.h" | 30 #include "IDBFactoryBackendProxy.h" |
| 31 | 31 |
| 32 #include "IDBDatabaseBackendProxy.h" | 32 #include "IDBDatabaseBackendProxy.h" |
| 33 #include "IDBDatabaseCallbacks.h" | |
| 34 #include "IDBDatabaseError.h" | |
| 35 #include "WebFrameImpl.h" | 33 #include "WebFrameImpl.h" |
| 36 #include "WebIDBCallbacksImpl.h" | 34 #include "WebIDBCallbacksImpl.h" |
| 37 #include "WebIDBDatabase.h" | 35 #include "WebIDBDatabase.h" |
| 38 #include "WebIDBDatabaseCallbacksImpl.h" | 36 #include "WebIDBDatabaseCallbacksImpl.h" |
| 39 #include "WebIDBDatabaseError.h" | 37 #include "WebIDBDatabaseError.h" |
| 40 #include "WebIDBFactory.h" | 38 #include "WebIDBFactory.h" |
| 41 #include "WebKit.h" | 39 #include "WebKit.h" |
| 42 #include "WebPermissionClient.h" | 40 #include "WebPermissionClient.h" |
| 43 #include "WebViewImpl.h" | 41 #include "WebViewImpl.h" |
| 44 #include "WebWorkerBase.h" | 42 #include "WebWorkerBase.h" |
| 45 #include "WebWorkerClientImpl.h" | 43 #include "WebWorkerClientImpl.h" |
| 46 #include "WorkerScriptController.h" | 44 #include "WorkerScriptController.h" |
| 47 #include "core/dom/CrossThreadTask.h" | 45 #include "core/dom/CrossThreadTask.h" |
| 48 #include "core/dom/ScriptExecutionContext.h" | 46 #include "core/dom/ScriptExecutionContext.h" |
| 49 #include "core/page/SecurityOrigin.h" | 47 #include "core/page/SecurityOrigin.h" |
| 50 #include "core/workers/WorkerContext.h" | 48 #include "core/workers/WorkerContext.h" |
| 51 #include "core/workers/WorkerLoaderProxy.h" | 49 #include "core/workers/WorkerLoaderProxy.h" |
| 52 #include "core/workers/WorkerThread.h" | 50 #include "core/workers/WorkerThread.h" |
| 51 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
| 52 #include "modules/indexeddb/IDBDatabaseError.h" |
| 53 #include <public/WebVector.h> | 53 #include <public/WebVector.h> |
| 54 | 54 |
| 55 | 55 |
| 56 using namespace WebCore; | 56 using namespace WebCore; |
| 57 | 57 |
| 58 namespace WebKit { | 58 namespace WebKit { |
| 59 | 59 |
| 60 static WebIDBFactory* s_webIDBFactory = 0; | 60 static WebIDBFactory* s_webIDBFactory = 0; |
| 61 | 61 |
| 62 void setIDBFactory(WebIDBFactory* factory) | 62 void setIDBFactory(WebIDBFactory* factory) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 { | 212 { |
| 213 RefPtr<IDBCallbacks> callbacks(prpCallbacks); | 213 RefPtr<IDBCallbacks> callbacks(prpCallbacks); |
| 214 WebSecurityOrigin origin(context->securityOrigin()); | 214 WebSecurityOrigin origin(context->securityOrigin()); |
| 215 if (!allowIndexedDB(context, name, origin, callbacks)) | 215 if (!allowIndexedDB(context, name, origin, callbacks)) |
| 216 return; | 216 return; |
| 217 | 217 |
| 218 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacksImpl(callbacks), da
tabaseIdentifier, dataDir); | 218 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacksImpl(callbacks), da
tabaseIdentifier, dataDir); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace WebKit | 221 } // namespace WebKit |
| OLD | NEW |