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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
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 "CrossThreadTask.h" | |
33 #include "IDBDatabaseBackendProxy.h" | 32 #include "IDBDatabaseBackendProxy.h" |
34 #include "IDBDatabaseCallbacks.h" | 33 #include "IDBDatabaseCallbacks.h" |
35 #include "IDBDatabaseError.h" | 34 #include "IDBDatabaseError.h" |
36 #include "ScriptExecutionContext.h" | |
37 #include "WebFrameImpl.h" | 35 #include "WebFrameImpl.h" |
38 #include "WebIDBCallbacksImpl.h" | 36 #include "WebIDBCallbacksImpl.h" |
39 #include "WebIDBDatabase.h" | 37 #include "WebIDBDatabase.h" |
40 #include "WebIDBDatabaseCallbacksImpl.h" | 38 #include "WebIDBDatabaseCallbacksImpl.h" |
41 #include "WebIDBDatabaseError.h" | 39 #include "WebIDBDatabaseError.h" |
42 #include "WebIDBFactory.h" | 40 #include "WebIDBFactory.h" |
43 #include "WebKit.h" | 41 #include "WebKit.h" |
44 #include "WebPermissionClient.h" | 42 #include "WebPermissionClient.h" |
45 #include "WebViewImpl.h" | 43 #include "WebViewImpl.h" |
46 #include "WebWorkerBase.h" | 44 #include "WebWorkerBase.h" |
47 #include "WebWorkerClientImpl.h" | 45 #include "WebWorkerClientImpl.h" |
48 #include "WorkerContext.h" | 46 #include "WorkerContext.h" |
49 #include "WorkerLoaderProxy.h" | 47 #include "WorkerLoaderProxy.h" |
50 #include "WorkerScriptController.h" | 48 #include "WorkerScriptController.h" |
51 #include "WorkerThread.h" | 49 #include "WorkerThread.h" |
| 50 #include "core/dom/CrossThreadTask.h" |
| 51 #include "core/dom/ScriptExecutionContext.h" |
52 #include "core/page/SecurityOrigin.h" | 52 #include "core/page/SecurityOrigin.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 |
(...skipping 150 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 |