| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebIDBFactoryImpl.h" | 32 #include "WebIDBFactoryImpl.h" |
| 33 | 33 |
| 34 #include "IDBCallbacksProxy.h" | 34 #include "IDBCallbacksProxy.h" |
| 35 #include "IDBDatabaseCallbacksProxy.h" | 35 #include "IDBDatabaseCallbacksProxy.h" |
| 36 #include "IDBFactoryBackendImpl.h" | |
| 37 #include "WebIDBDatabaseCallbacks.h" | 36 #include "WebIDBDatabaseCallbacks.h" |
| 38 #include "WebIDBDatabaseError.h" | 37 #include "WebIDBDatabaseError.h" |
| 39 #include "core/page/SecurityOrigin.h" | 38 #include "core/page/SecurityOrigin.h" |
| 39 #include "modules/indexeddb/IDBFactoryBackendImpl.h" |
| 40 #include <wtf/OwnPtr.h> | 40 #include <wtf/OwnPtr.h> |
| 41 | 41 |
| 42 using namespace WebCore; | 42 using namespace WebCore; |
| 43 | 43 |
| 44 namespace WebKit { | 44 namespace WebKit { |
| 45 | 45 |
| 46 WebIDBFactory* WebIDBFactory::create() | 46 WebIDBFactory* WebIDBFactory::create() |
| 47 { | 47 { |
| 48 return new WebIDBFactoryImpl(); | 48 return new WebIDBFactoryImpl(); |
| 49 } | 49 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 callbacksProxy->setDatabaseCallbacks(databaseCallbacksProxy); | 69 callbacksProxy->setDatabaseCallbacks(databaseCallbacksProxy); |
| 70 m_idbFactoryBackend->open(name, version, transactionId, callbacksProxy.get()
, databaseCallbacksProxy.get(), databaseIdentifier, 0, dataDir); | 70 m_idbFactoryBackend->open(name, version, transactionId, callbacksProxy.get()
, databaseCallbacksProxy.get(), databaseIdentifier, 0, dataDir); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void WebIDBFactoryImpl::deleteDatabase(const WebString& name, WebIDBCallbacks* c
allbacks, const WebString& databaseIdentifier, const WebString& dataDir) | 73 void WebIDBFactoryImpl::deleteDatabase(const WebString& name, WebIDBCallbacks* c
allbacks, const WebString& databaseIdentifier, const WebString& dataDir) |
| 74 { | 74 { |
| 75 m_idbFactoryBackend->deleteDatabase(name, IDBCallbacksProxy::create(adoptPtr
(callbacks)), databaseIdentifier, 0, dataDir); | 75 m_idbFactoryBackend->deleteDatabase(name, IDBCallbacksProxy::create(adoptPtr
(callbacks)), databaseIdentifier, 0, dataDir); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace WebKit | 78 } // namespace WebKit |
| OLD | NEW |