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 "InspectorFrontend.h" | |
36 #include "bindings/v8/ScriptController.h" | 35 #include "bindings/v8/ScriptController.h" |
37 #include "core/dom/DOMStringList.h" | 36 #include "core/dom/DOMStringList.h" |
38 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
39 #include "core/dom/Event.h" | 38 #include "core/dom/Event.h" |
40 #include "core/dom/EventListener.h" | 39 #include "core/dom/EventListener.h" |
41 #include "core/dom/EventTarget.h" | |
42 #include "core/dom/ExceptionCode.h" | |
43 #include "core/inspector/InjectedScript.h" | 40 #include "core/inspector/InjectedScript.h" |
44 #include "core/inspector/InspectorPageAgent.h" | 41 #include "core/inspector/InspectorPageAgent.h" |
45 #include "core/inspector/InspectorState.h" | 42 #include "core/inspector/InspectorState.h" |
46 #include "core/inspector/InspectorValues.h" | 43 #include "core/inspector/InspectorValues.h" |
47 #include "core/inspector/InstrumentingAgents.h" | |
48 #include "core/page/DOMWindow.h" | |
49 #include "core/page/Frame.h" | 44 #include "core/page/Frame.h" |
50 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" | 45 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" |
51 #include "modules/indexeddb/IDBCursor.h" | 46 #include "modules/indexeddb/IDBCursor.h" |
52 #include "modules/indexeddb/IDBCursorWithValue.h" | 47 #include "modules/indexeddb/IDBCursorWithValue.h" |
53 #include "modules/indexeddb/IDBDatabase.h" | 48 #include "modules/indexeddb/IDBDatabase.h" |
54 #include "modules/indexeddb/IDBDatabaseCallbacks.h" | |
55 #include "modules/indexeddb/IDBFactory.h" | 49 #include "modules/indexeddb/IDBFactory.h" |
56 #include "modules/indexeddb/IDBIndex.h" | 50 #include "modules/indexeddb/IDBIndex.h" |
57 #include "modules/indexeddb/IDBKey.h" | 51 #include "modules/indexeddb/IDBKey.h" |
58 #include "modules/indexeddb/IDBKeyPath.h" | 52 #include "modules/indexeddb/IDBKeyPath.h" |
59 #include "modules/indexeddb/IDBKeyRange.h" | 53 #include "modules/indexeddb/IDBKeyRange.h" |
60 #include "modules/indexeddb/IDBMetadata.h" | 54 #include "modules/indexeddb/IDBMetadata.h" |
61 #include "modules/indexeddb/IDBObjectStore.h" | 55 #include "modules/indexeddb/IDBObjectStore.h" |
62 #include "modules/indexeddb/IDBOpenDBRequest.h" | 56 #include "modules/indexeddb/IDBOpenDBRequest.h" |
63 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 57 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
64 #include "modules/indexeddb/IDBRequest.h" | 58 #include "modules/indexeddb/IDBRequest.h" |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 v8::HandleScope handleScope; | 777 v8::HandleScope handleScope; |
784 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); | 778 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); |
785 ASSERT(!context.IsEmpty()); | 779 ASSERT(!context.IsEmpty()); |
786 v8::Context::Scope contextScope(context); | 780 v8::Context::Scope contextScope(context); |
787 | 781 |
788 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); | 782 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); |
789 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); | 783 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); |
790 } | 784 } |
791 | 785 |
792 } // namespace WebCore | 786 } // namespace WebCore |
OLD | NEW |