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 "InspectorIndexedDBAgent.h" | 33 #include "InspectorIndexedDBAgent.h" |
34 | 34 |
35 #include "DOMStringList.h" | |
36 #include "DOMWindowIndexedDatabase.h" | 35 #include "DOMWindowIndexedDatabase.h" |
37 #include "Document.h" | |
38 #include "Event.h" | |
39 #include "EventListener.h" | |
40 #include "EventTarget.h" | |
41 #include "ExceptionCode.h" | |
42 #include "IDBCursor.h" | 36 #include "IDBCursor.h" |
43 #include "IDBCursorWithValue.h" | 37 #include "IDBCursorWithValue.h" |
44 #include "IDBDatabase.h" | 38 #include "IDBDatabase.h" |
45 #include "IDBDatabaseCallbacks.h" | 39 #include "IDBDatabaseCallbacks.h" |
46 #include "IDBFactory.h" | 40 #include "IDBFactory.h" |
47 #include "IDBIndex.h" | 41 #include "IDBIndex.h" |
48 #include "IDBKey.h" | 42 #include "IDBKey.h" |
49 #include "IDBKeyPath.h" | 43 #include "IDBKeyPath.h" |
50 #include "IDBKeyRange.h" | 44 #include "IDBKeyRange.h" |
51 #include "IDBMetadata.h" | 45 #include "IDBMetadata.h" |
52 #include "IDBObjectStore.h" | 46 #include "IDBObjectStore.h" |
53 #include "IDBOpenDBRequest.h" | 47 #include "IDBOpenDBRequest.h" |
54 #include "IDBPendingTransactionMonitor.h" | 48 #include "IDBPendingTransactionMonitor.h" |
55 #include "IDBRequest.h" | 49 #include "IDBRequest.h" |
56 #include "IDBTransaction.h" | 50 #include "IDBTransaction.h" |
57 #include "InjectedScript.h" | 51 #include "InjectedScript.h" |
58 #include "InspectorFrontend.h" | 52 #include "InspectorFrontend.h" |
59 #include "InspectorPageAgent.h" | 53 #include "InspectorPageAgent.h" |
60 #include "InspectorState.h" | 54 #include "InspectorState.h" |
61 #include "InspectorValues.h" | 55 #include "InspectorValues.h" |
62 #include "InstrumentingAgents.h" | 56 #include "InstrumentingAgents.h" |
63 #include "ScriptController.h" | 57 #include "ScriptController.h" |
| 58 #include "core/dom/DOMStringList.h" |
| 59 #include "core/dom/Document.h" |
| 60 #include "core/dom/Event.h" |
| 61 #include "core/dom/EventListener.h" |
| 62 #include "core/dom/EventTarget.h" |
| 63 #include "core/dom/ExceptionCode.h" |
64 #include "core/page/DOMWindow.h" | 64 #include "core/page/DOMWindow.h" |
65 #include "core/page/Frame.h" | 65 #include "core/page/Frame.h" |
66 #include "core/page/SecurityOrigin.h" | 66 #include "core/page/SecurityOrigin.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; |
(...skipping 709 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 |