Changeset 138963 in webkit
- Timestamp:
- Jan 7, 2013 10:53:47 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r138962 r138963 1 2013-01-07 Alec Flett <alecflett@chromium.org> 2 3 IndexedDB: Stub out async IDBDatabaseBackendInterface::createObjectStore 4 https://bugs.webkit.org/show_bug.cgi?id=106148 5 6 Reviewed by Adam Barth. 7 8 These methods are becoming async in multiprocess ports, so stub out 9 versions that have no return values. 10 11 * Modules/indexeddb/IDBDatabaseBackendImpl.h: 12 (WebCore::IDBDatabaseBackendImpl::createObjectStore): 13 (WebCore::IDBDatabaseBackendImpl::deleteObjectStore): 14 * Modules/indexeddb/IDBDatabaseBackendInterface.h: 15 (IDBDatabaseBackendInterface): 16 1 17 2013-01-04 Alexey Proskuryakov <ap@apple.com> 2 18 -
trunk/Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h
r138898 r138963 62 62 virtual IDBDatabaseMetadata metadata() const; 63 63 virtual PassRefPtr<IDBObjectStoreBackendInterface> createObjectStore(int64_t id, const String& name, const IDBKeyPath&, bool autoIncrement, IDBTransactionBackendInterface*, ExceptionCode&); 64 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath&, bool autoIncrement) { ASSERT_NOT_REACHED(); } 64 65 virtual void deleteObjectStore(int64_t, IDBTransactionBackendInterface*, ExceptionCode&); 66 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId) { ASSERT_NOT_REACHED(); } 65 67 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 66 68 virtual PassRefPtr<IDBTransactionBackendInterface> createTransaction(int64_t transactionId, const Vector<int64_t>& objectStoreIds, IDBTransaction::Mode); -
trunk/Source/WebCore/Modules/indexeddb/IDBDatabaseBackendInterface.h
r138898 r138963 57 57 58 58 virtual PassRefPtr<IDBObjectStoreBackendInterface> createObjectStore(int64_t, const String& name, const IDBKeyPath&, bool autoIncrement, IDBTransactionBackendInterface*, ExceptionCode&) = 0; 59 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath&, bool autoIncrement) = 0; 59 60 virtual void deleteObjectStore(int64_t, IDBTransactionBackendInterface*, ExceptionCode&) = 0; 61 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId) = 0; 60 62 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 61 63 virtual PassRefPtr<IDBTransactionBackendInterface> createTransaction(int64_t transactionId, const Vector<int64_t>& objectStoreIds, IDBTransaction::Mode) = 0; -
trunk/Source/WebKit/chromium/ChangeLog
r138950 r138963 1 2013-01-07 Alec Flett <alecflett@chromium.org> 2 3 IndexedDB: Stub out async IDBDatabaseBackendInterface::createObjectStore 4 https://bugs.webkit.org/show_bug.cgi?id=106148 5 6 Reviewed by Adam Barth. 7 8 Stub out WebKit API for async createObjectStore. 9 10 * public/WebIDBDatabase.h: 11 (WebIDBDatabase): 12 * src/IDBDatabaseBackendProxy.cpp: 13 (WebKit::IDBDatabaseBackendProxy::createObjectStore): 14 (WebKit): 15 (WebKit::IDBDatabaseBackendProxy::deleteObjectStore): 16 * src/IDBDatabaseBackendProxy.h: 17 (IDBDatabaseBackendProxy): 18 * src/WebIDBDatabaseImpl.cpp: 19 (WebKit::WebIDBDatabaseImpl::createObjectStore): 20 (WebKit): 21 (WebKit::WebIDBDatabaseImpl::deleteObjectStore): 22 * src/WebIDBDatabaseImpl.h: 23 (WebIDBDatabaseImpl): 24 1 25 2013-01-07 Stephen Chenney <schenney@chromium.org> 2 26 -
trunk/Source/WebKit/chromium/public/WebIDBDatabase.h
r138900 r138963 59 59 return 0; 60 60 } 61 virtual void createObjectStore(long long transactionId, long long objectStoreId, const WebString& name, const WebIDBKeyPath&, bool autoIncrement) { WEBKIT_ASSERT_NOT_REACHED(); } 61 62 virtual void deleteObjectStore(long long objectStoreId, const WebIDBTransaction& transaction, WebExceptionCode& ec) { WEBKIT_ASSERT_NOT_REACHED(); } 63 virtual void deleteObjectStore(long long transactionId, long long objectStoreId) { WEBKIT_ASSERT_NOT_REACHED(); } 62 64 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 63 65 virtual WebIDBTransaction* createTransaction(long long id, const WebVector<long long>&, unsigned short mode) { WEBKIT_ASSERT_NOT_REACHED(); return 0; } -
trunk/Source/WebKit/chromium/src/IDBDatabaseBackendProxy.cpp
r138898 r138963 80 80 } 81 81 82 void IDBDatabaseBackendProxy::createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath& keyPath, bool autoIncrement) 83 { 84 if (m_webIDBDatabase) 85 m_webIDBDatabase->createObjectStore(transactionId, objectStoreId, name, keyPath, autoIncrement); 86 } 87 82 88 void IDBDatabaseBackendProxy::deleteObjectStore(int64_t objectStoreId, IDBTransactionBackendInterface* transaction, ExceptionCode& ec) 83 89 { … … 86 92 IDBTransactionBackendProxy* transactionProxy = static_cast<IDBTransactionBackendProxy*>(transaction); 87 93 m_webIDBDatabase->deleteObjectStore(objectStoreId, *transactionProxy->getWebIDBTransaction(), ec); 94 } 95 96 void IDBDatabaseBackendProxy::deleteObjectStore(int64_t transactionId, int64_t objectStoreId) 97 { 98 if (m_webIDBDatabase) 99 m_webIDBDatabase->deleteObjectStore(transactionId, objectStoreId); 88 100 } 89 101 -
trunk/Source/WebKit/chromium/src/IDBDatabaseBackendProxy.h
r138898 r138963 46 46 47 47 virtual PassRefPtr<WebCore::IDBObjectStoreBackendInterface> createObjectStore(int64_t, const String& name, const WebCore::IDBKeyPath&, bool autoIncrement, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&); 48 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const WebCore::IDBKeyPath&, bool autoIncrement); 48 49 virtual void deleteObjectStore(int64_t, WebCore::IDBTransactionBackendInterface*, WebCore::ExceptionCode&); 50 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId); 49 51 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 50 52 virtual PassRefPtr<WebCore::IDBTransactionBackendInterface> createTransaction(int64_t, const Vector<int64_t>&, WebCore::IDBTransaction::Mode); -
trunk/Source/WebKit/chromium/src/WebIDBDatabaseImpl.cpp
r138900 r138963 73 73 } 74 74 75 void WebIDBDatabaseImpl::createObjectStore(long long transactionId, long long objectStoreId, const WebString& name, const WebIDBKeyPath& keyPath, bool autoIncrement) 76 { 77 m_databaseBackend->createObjectStore(transactionId, objectStoreId, name, keyPath, autoIncrement); 78 } 79 75 80 void WebIDBDatabaseImpl::deleteObjectStore(long long objectStoreId, const WebIDBTransaction& transaction, WebExceptionCode& ec) 76 81 { 77 82 m_databaseBackend->deleteObjectStore(objectStoreId, transaction.getIDBTransactionBackendInterface(), ec); 78 83 } 84 85 void WebIDBDatabaseImpl::deleteObjectStore(long long transactionId, long long objectStoreId) 86 { 87 m_databaseBackend->deleteObjectStore(transactionId, objectStoreId); 88 } 89 79 90 80 91 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. -
trunk/Source/WebKit/chromium/src/WebIDBDatabaseImpl.h
r138898 r138963 55 55 56 56 virtual WebIDBObjectStore* createObjectStore(long long, const WebString& name, const WebIDBKeyPath&, bool autoIncrement, const WebIDBTransaction&, WebExceptionCode&); 57 virtual void createObjectStore(long long transactionId, long long objectStoreId, const WebString& name, const WebIDBKeyPath&, bool autoIncrement); 57 58 virtual void deleteObjectStore(long long objectStoreId, const WebIDBTransaction&, WebExceptionCode&); 59 virtual void deleteObjectStore(long long objectStoreId, long long transactionId); 58 60 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 59 61 virtual WebIDBTransaction* createTransaction(long long id, const WebVector<long long>&, unsigned short mode); -
trunk/Source/WebKit/chromium/tests/IDBDatabaseBackendTest.cpp
r138900 r138963 152 152 153 153 virtual IDBDatabaseMetadata metadata() const { return IDBDatabaseMetadata(); } 154 virtual PassRefPtr<IDBObjectStoreBackendInterface> createObjectStore(int64_t, const String& name, const IDBKeyPath&, bool autoIncrement, IDBTransactionBackendInterface*, ExceptionCode&) { return 0; } 155 virtual void deleteObjectStore(const String& name, IDBTransactionBackendInterface*, ExceptionCode&) { } 156 virtual void deleteObjectStore(int64_t, IDBTransactionBackendInterface*, ExceptionCode&) { } 154 virtual PassRefPtr<IDBObjectStoreBackendInterface> createObjectStore(int64_t, const String& name, const IDBKeyPath&, bool autoIncrement, IDBTransactionBackendInterface*, ExceptionCode&) OVERRIDE { return 0; } 155 virtual void createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath&, bool autoIncrement) OVERRIDE { }; 156 virtual void deleteObjectStore(int64_t transactionId, int64_t objectStoreId) OVERRIDE { } 157 virtual void deleteObjectStore(int64_t, IDBTransactionBackendInterface*, ExceptionCode&) OVERRIDE { } 157 158 // FIXME: Remove this method in https://bugs.webkit.org/show_bug.cgi?id=103923. 158 159 virtual PassRefPtr<IDBTransactionBackendInterface> createTransaction(int64_t, const Vector<int64_t>&, IDBTransaction::Mode) OVERRIDE { return 0; }
Note: See TracChangeset
for help on using the changeset viewer.