| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "WorkerPermissionClient.h" | 47 #include "WorkerPermissionClient.h" |
| 48 #include "bindings/v8/WorkerScriptController.h" | 48 #include "bindings/v8/WorkerScriptController.h" |
| 49 #include "core/dom/CrossThreadTask.h" | 49 #include "core/dom/CrossThreadTask.h" |
| 50 #include "core/dom/DOMError.h" | 50 #include "core/dom/DOMError.h" |
| 51 #include "core/dom/ExceptionCode.h" | 51 #include "core/dom/ExceptionCode.h" |
| 52 #include "core/dom/ExecutionContext.h" | 52 #include "core/dom/ExecutionContext.h" |
| 53 #include "core/workers/WorkerGlobalScope.h" | 53 #include "core/workers/WorkerGlobalScope.h" |
| 54 #include "core/workers/WorkerLoaderProxy.h" | 54 #include "core/workers/WorkerLoaderProxy.h" |
| 55 #include "core/workers/WorkerThread.h" | 55 #include "core/workers/WorkerThread.h" |
| 56 #include "modules/indexeddb/IDBDatabaseCallbacks.h" | 56 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
| 57 #include "weborigin/SecurityOrigin.h" | 57 #include "platform/weborigin/SecurityOrigin.h" |
| 58 | 58 |
| 59 | 59 |
| 60 using namespace WebCore; | 60 using namespace WebCore; |
| 61 | 61 |
| 62 namespace WebKit { | 62 namespace WebKit { |
| 63 | 63 |
| 64 PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendProxy::create() | 64 PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendProxy::create() |
| 65 { | 65 { |
| 66 return adoptRef(new IDBFactoryBackendProxy()); | 66 return adoptRef(new IDBFactoryBackendProxy()); |
| 67 } | 67 } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 { | 179 { |
| 180 RefPtr<IDBCallbacks> callbacks(prpCallbacks); | 180 RefPtr<IDBCallbacks> callbacks(prpCallbacks); |
| 181 WebSecurityOrigin origin(context->securityOrigin()); | 181 WebSecurityOrigin origin(context->securityOrigin()); |
| 182 if (!allowIndexedDB(context, name, origin, callbacks)) | 182 if (!allowIndexedDB(context, name, origin, callbacks)) |
| 183 return; | 183 return; |
| 184 | 184 |
| 185 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacksImpl(callbacks), da
tabaseIdentifier); | 185 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacksImpl(callbacks), da
tabaseIdentifier); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace WebKit | 188 } // namespace WebKit |
| OLD | NEW |