| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "modules/indexeddb/IDBKey.h" | 51 #include "modules/indexeddb/IDBKey.h" |
| 52 #include "modules/indexeddb/IDBKeyPath.h" | 52 #include "modules/indexeddb/IDBKeyPath.h" |
| 53 #include "modules/indexeddb/IDBKeyRange.h" | 53 #include "modules/indexeddb/IDBKeyRange.h" |
| 54 #include "modules/indexeddb/IDBMetadata.h" | 54 #include "modules/indexeddb/IDBMetadata.h" |
| 55 #include "modules/indexeddb/IDBObjectStore.h" | 55 #include "modules/indexeddb/IDBObjectStore.h" |
| 56 #include "modules/indexeddb/IDBOpenDBRequest.h" | 56 #include "modules/indexeddb/IDBOpenDBRequest.h" |
| 57 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 57 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
| 58 #include "modules/indexeddb/IDBRequest.h" | 58 #include "modules/indexeddb/IDBRequest.h" |
| 59 #include "modules/indexeddb/IDBTransaction.h" | 59 #include "modules/indexeddb/IDBTransaction.h" |
| 60 #include "platform/JSONValues.h" | 60 #include "platform/JSONValues.h" |
| 61 #include "weborigin/SecurityOrigin.h" | 61 #include "platform/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; |
| 71 using WebCore::TypeBuilder::IndexedDB::ObjectStoreIndex; | 71 using WebCore::TypeBuilder::IndexedDB::ObjectStoreIndex; |
| (...skipping 706 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().mainWorldConte
xt(); | 779 v8::Handle<v8::Context> context = document->frame()->script().mainWorldConte
xt(); |
| 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 |