| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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 | 32 |
| 33 #include "core/inspector/InspectorIndexedDBAgent.h" | 33 #include "core/inspector/InspectorIndexedDBAgent.h" |
| 34 | 34 |
| 35 #include "DOMWindowIndexedDatabase.h" | |
| 36 #include "IDBCursor.h" | |
| 37 #include "IDBCursorWithValue.h" | |
| 38 #include "IDBDatabase.h" | |
| 39 #include "IDBDatabaseCallbacks.h" | |
| 40 #include "IDBFactory.h" | |
| 41 #include "IDBIndex.h" | |
| 42 #include "IDBKey.h" | |
| 43 #include "IDBKeyPath.h" | |
| 44 #include "IDBKeyRange.h" | |
| 45 #include "IDBMetadata.h" | |
| 46 #include "IDBObjectStore.h" | |
| 47 #include "IDBOpenDBRequest.h" | |
| 48 #include "IDBPendingTransactionMonitor.h" | |
| 49 #include "IDBRequest.h" | |
| 50 #include "IDBTransaction.h" | |
| 51 #include "InspectorFrontend.h" | 35 #include "InspectorFrontend.h" |
| 52 #include "ScriptController.h" | 36 #include "ScriptController.h" |
| 53 #include "core/dom/DOMStringList.h" | 37 #include "core/dom/DOMStringList.h" |
| 54 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 55 #include "core/dom/Event.h" | 39 #include "core/dom/Event.h" |
| 56 #include "core/dom/EventListener.h" | 40 #include "core/dom/EventListener.h" |
| 57 #include "core/dom/EventTarget.h" | 41 #include "core/dom/EventTarget.h" |
| 58 #include "core/dom/ExceptionCode.h" | 42 #include "core/dom/ExceptionCode.h" |
| 59 #include "core/inspector/InjectedScript.h" | 43 #include "core/inspector/InjectedScript.h" |
| 60 #include "core/inspector/InspectorPageAgent.h" | 44 #include "core/inspector/InspectorPageAgent.h" |
| 61 #include "core/inspector/InspectorState.h" | 45 #include "core/inspector/InspectorState.h" |
| 62 #include "core/inspector/InspectorValues.h" | 46 #include "core/inspector/InspectorValues.h" |
| 63 #include "core/inspector/InstrumentingAgents.h" | 47 #include "core/inspector/InstrumentingAgents.h" |
| 64 #include "core/page/DOMWindow.h" | 48 #include "core/page/DOMWindow.h" |
| 65 #include "core/page/Frame.h" | 49 #include "core/page/Frame.h" |
| 66 #include "core/page/SecurityOrigin.h" | 50 #include "core/page/SecurityOrigin.h" |
| 51 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" |
| 52 #include "modules/indexeddb/IDBCursor.h" |
| 53 #include "modules/indexeddb/IDBCursorWithValue.h" |
| 54 #include "modules/indexeddb/IDBDatabase.h" |
| 55 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
| 56 #include "modules/indexeddb/IDBFactory.h" |
| 57 #include "modules/indexeddb/IDBIndex.h" |
| 58 #include "modules/indexeddb/IDBKey.h" |
| 59 #include "modules/indexeddb/IDBKeyPath.h" |
| 60 #include "modules/indexeddb/IDBKeyRange.h" |
| 61 #include "modules/indexeddb/IDBMetadata.h" |
| 62 #include "modules/indexeddb/IDBObjectStore.h" |
| 63 #include "modules/indexeddb/IDBOpenDBRequest.h" |
| 64 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
| 65 #include "modules/indexeddb/IDBRequest.h" |
| 66 #include "modules/indexeddb/IDBTransaction.h" |
| 67 | 67 |
| 68 #include <wtf/Vector.h> | 68 #include <wtf/Vector.h> |
| 69 | 69 |
| 70 using WebCore::TypeBuilder::Array; | 70 using WebCore::TypeBuilder::Array; |
| 71 using WebCore::TypeBuilder::IndexedDB::DatabaseWithObjectStores; | 71 using WebCore::TypeBuilder::IndexedDB::DatabaseWithObjectStores; |
| 72 using WebCore::TypeBuilder::IndexedDB::DataEntry; | 72 using WebCore::TypeBuilder::IndexedDB::DataEntry; |
| 73 using WebCore::TypeBuilder::IndexedDB::Key; | 73 using WebCore::TypeBuilder::IndexedDB::Key; |
| 74 using WebCore::TypeBuilder::IndexedDB::KeyPath; | 74 using WebCore::TypeBuilder::IndexedDB::KeyPath; |
| 75 using WebCore::TypeBuilder::IndexedDB::KeyRange; | 75 using WebCore::TypeBuilder::IndexedDB::KeyRange; |
| 76 using WebCore::TypeBuilder::IndexedDB::ObjectStore; | 76 using WebCore::TypeBuilder::IndexedDB::ObjectStore; |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 v8::HandleScope handleScope; | 783 v8::HandleScope handleScope; |
| 784 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); | 784 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); |
| 785 ASSERT(!context.IsEmpty()); | 785 ASSERT(!context.IsEmpty()); |
| 786 v8::Context::Scope contextScope(context); | 786 v8::Context::Scope contextScope(context); |
| 787 | 787 |
| 788 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); | 788 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); |
| 789 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); | 789 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); |
| 790 } | 790 } |
| 791 | 791 |
| 792 } // namespace WebCore | 792 } // namespace WebCore |
| OLD | NEW |