| 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 24 matching lines...) Expand all Loading... |
| 35 #include "bindings/v8/ExceptionStatePlaceholder.h" | 35 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 36 #include "bindings/v8/ScriptController.h" | 36 #include "bindings/v8/ScriptController.h" |
| 37 #include "core/dom/DOMStringList.h" | 37 #include "core/dom/DOMStringList.h" |
| 38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 39 #include "core/events/Event.h" | 39 #include "core/events/Event.h" |
| 40 #include "core/events/EventListener.h" | 40 #include "core/events/EventListener.h" |
| 41 #include "core/inspector/InjectedScript.h" | 41 #include "core/inspector/InjectedScript.h" |
| 42 #include "core/inspector/InspectorPageAgent.h" | 42 #include "core/inspector/InspectorPageAgent.h" |
| 43 #include "core/inspector/InspectorState.h" | 43 #include "core/inspector/InspectorState.h" |
| 44 #include "core/page/Frame.h" | 44 #include "core/page/Frame.h" |
| 45 #include "core/platform/JSONValues.h" | |
| 46 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" | 45 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" |
| 47 #include "modules/indexeddb/IDBCursor.h" | 46 #include "modules/indexeddb/IDBCursor.h" |
| 48 #include "modules/indexeddb/IDBCursorWithValue.h" | 47 #include "modules/indexeddb/IDBCursorWithValue.h" |
| 49 #include "modules/indexeddb/IDBDatabase.h" | 48 #include "modules/indexeddb/IDBDatabase.h" |
| 50 #include "modules/indexeddb/IDBFactory.h" | 49 #include "modules/indexeddb/IDBFactory.h" |
| 51 #include "modules/indexeddb/IDBIndex.h" | 50 #include "modules/indexeddb/IDBIndex.h" |
| 52 #include "modules/indexeddb/IDBKey.h" | 51 #include "modules/indexeddb/IDBKey.h" |
| 53 #include "modules/indexeddb/IDBKeyPath.h" | 52 #include "modules/indexeddb/IDBKeyPath.h" |
| 54 #include "modules/indexeddb/IDBKeyRange.h" | 53 #include "modules/indexeddb/IDBKeyRange.h" |
| 55 #include "modules/indexeddb/IDBMetadata.h" | 54 #include "modules/indexeddb/IDBMetadata.h" |
| 56 #include "modules/indexeddb/IDBObjectStore.h" | 55 #include "modules/indexeddb/IDBObjectStore.h" |
| 57 #include "modules/indexeddb/IDBOpenDBRequest.h" | 56 #include "modules/indexeddb/IDBOpenDBRequest.h" |
| 58 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 57 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
| 59 #include "modules/indexeddb/IDBRequest.h" | 58 #include "modules/indexeddb/IDBRequest.h" |
| 60 #include "modules/indexeddb/IDBTransaction.h" | 59 #include "modules/indexeddb/IDBTransaction.h" |
| 60 #include "platform/JSONValues.h" |
| 61 #include "weborigin/SecurityOrigin.h" | 61 #include "weborigin/SecurityOrigin.h" |
| 62 #include "wtf/Vector.h" | 62 #include "wtf/Vector.h" |
| 63 | 63 |
| 64 using WebCore::TypeBuilder::Array; | 64 using WebCore::TypeBuilder::Array; |
| 65 using WebCore::TypeBuilder::IndexedDB::DatabaseWithObjectStores; | 65 using WebCore::TypeBuilder::IndexedDB::DatabaseWithObjectStores; |
| 66 using WebCore::TypeBuilder::IndexedDB::DataEntry; | 66 using WebCore::TypeBuilder::IndexedDB::DataEntry; |
| 67 using WebCore::TypeBuilder::IndexedDB::Key; | 67 using WebCore::TypeBuilder::IndexedDB::Key; |
| 68 using WebCore::TypeBuilder::IndexedDB::KeyPath; | 68 using WebCore::TypeBuilder::IndexedDB::KeyPath; |
| 69 using WebCore::TypeBuilder::IndexedDB::KeyRange; | 69 using WebCore::TypeBuilder::IndexedDB::KeyRange; |
| 70 using WebCore::TypeBuilder::IndexedDB::ObjectStore; | 70 using WebCore::TypeBuilder::IndexedDB::ObjectStore; |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 v8::HandleScope handleScope(toIsolate(frame)); | 778 v8::HandleScope handleScope(toIsolate(frame)); |
| 779 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); | 779 v8::Handle<v8::Context> context = document->frame()->script()->mainWorldCont
ext(); |
| 780 ASSERT(!context.IsEmpty()); | 780 ASSERT(!context.IsEmpty()); |
| 781 v8::Context::Scope contextScope(context); | 781 v8::Context::Scope contextScope(context); |
| 782 | 782 |
| 783 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); | 783 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen
t, objectStoreName, requestCallback); |
| 784 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); | 784 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName
); |
| 785 } | 785 } |
| 786 | 786 |
| 787 } // namespace WebCore | 787 } // namespace WebCore |
| OLD | NEW |