Changeset 73264 in webkit
- Timestamp:
- Dec 3, 2010 8:14:21 AM (13 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r73193 r73264 1 2010-11-29 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Clean up IndexedDB 2 sided roll bits 6 https://bugs.webkit.org/show_bug.cgi?id=50160 7 8 * public/WebIDBDatabase.h: 9 (WebKit::WebIDBDatabase::version): 10 (WebKit::WebIDBDatabase::objectStoreNames): 11 (WebKit::WebIDBDatabase::deleteObjectStore): 12 * public/WebIDBFactory.h: 13 (WebKit::WebIDBFactory::open): 14 * public/WebIDBKeyRange.h: 15 * public/WebIDBObjectStore.h: 16 (WebKit::WebIDBObjectStore::deleteFunction): 17 * src/IDBDatabaseProxy.cpp: 18 * src/IDBDatabaseProxy.h: 19 * src/WebIDBKeyRange.cpp: 20 1 21 2010-12-02 Chris Rogers <crogers@google.com> 2 22 -
trunk/WebKit/chromium/public/WebIDBDatabase.h
r72771 r73264 48 48 return WebString(); 49 49 } 50 // FIXME: remove after roll.51 virtual WebString description() const52 {53 return WebString();54 }55 50 virtual WebString version() const 56 51 { … … 58 53 return WebString(); 59 54 } 60 virtual WebDOMStringList objectStores() const { return objectStoreNames(); } // FIXME: Remove after roll. 61 virtual WebDOMStringList objectStoreNames() const { return objectStores(); } // FIXME: Assert not reached after roll. 55 virtual WebDOMStringList objectStoreNames() const 56 { 57 WEBKIT_ASSERT_NOT_REACHED(); 58 return WebDOMStringList(); 59 } 62 60 virtual WebIDBObjectStore* createObjectStore(const WebString& name, const WebString& keyPath, bool autoIncrement, const WebIDBTransaction&, WebExceptionCode&) 63 61 { … … 65 63 return 0; 66 64 } 67 virtual void deleteObjectStore(const WebString& name, const WebIDBTransaction& transaction, WebExceptionCode& ec) { removeObjectStore(name, transaction, ec); } 68 // FIXME: remove after roll. 69 virtual void removeObjectStore(const WebString& name, const WebIDBTransaction& transaction, WebExceptionCode& ec) { deleteObjectStore(name, transaction, ec); } 65 virtual void deleteObjectStore(const WebString& name, const WebIDBTransaction& transaction, WebExceptionCode& ec) { WEBKIT_ASSERT_NOT_REACHED(); } 70 66 virtual void setVersion(const WebString& version, WebIDBCallbacks* callbacks, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } 71 67 // Transfers ownership of the WebIDBTransaction to the caller. -
trunk/WebKit/chromium/public/WebIDBFactory.h
r72794 r73264 52 52 virtual ~WebIDBFactory() { } 53 53 54 // FIXME: Remove after roll.55 virtual void open(const WebString& name, const WebString& description, WebIDBCallbacks* callbacks, const WebSecurityOrigin& origin, WebFrame* webFrame, const WebString& dataDir, unsigned long long maximumSize)56 {57 open(name, callbacks, origin, webFrame, dataDir, maximumSize);58 }59 60 54 // The WebKit implementation of open ignores the WebFrame* parameter. 61 55 virtual void open(const WebString& name, WebIDBCallbacks* callbacks, const WebSecurityOrigin& origin, WebFrame* webFrame, const WebString& dataDir, unsigned long long maximumSize) 62 56 { 63 // WEBKIT_ASSERT_NOT_REACHED(); 64 open(name, "", callbacks, origin, webFrame, dataDir, maximumSize); 57 WEBKIT_ASSERT_NOT_REACHED(); 65 58 } 66 59 }; -
trunk/WebKit/chromium/public/WebIDBKeyRange.h
r72767 r73264 44 44 WebIDBKeyRange(const WebIDBKey& lower, const WebIDBKey& upper, bool lowerOpen, bool upperOpen) { assign(lower, upper, lowerOpen, upperOpen); } 45 45 46 // FIXME: Remove next 3 methods after next roll.47 WebIDBKeyRange(const WebIDBKey& lower, const WebIDBKey& upper, unsigned short flags) { assign(lower, upper, flags); }48 WEBKIT_API void assign(const WebIDBKey& lower, const WebIDBKey& upper, unsigned short flags);49 WEBKIT_API unsigned short flags() const;50 WEBKIT_API WebIDBKey left() const;51 WEBKIT_API WebIDBKey right() const;52 53 46 WEBKIT_API WebIDBKey lower() const; 54 47 WEBKIT_API WebIDBKey upper() const; -
trunk/WebKit/chromium/public/WebIDBObjectStore.h
r72771 r73264 62 62 virtual void get(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } 63 63 virtual void put(const WebSerializedScriptValue&, const WebIDBKey&, bool addOnly, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } 64 // FIXME: Remove after roll. 65 virtual void remove(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) { deleteFunction(key, callbacks, transaction, ec); } 66 virtual void deleteFunction(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) { remove(key, callbacks, transaction, ec); } 64 virtual void deleteFunction(const WebIDBKey& key, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction, WebExceptionCode& ec) { WEBKIT_ASSERT_NOT_REACHED(); } 67 65 virtual WebIDBIndex* createIndex(const WebString& name, const WebString& keyPath, bool unique, const WebIDBTransaction&, WebExceptionCode&) 68 66 { -
trunk/WebKit/chromium/src/IDBDatabaseProxy.cpp
r72771 r73264 62 62 } 63 63 64 String IDBDatabaseProxy::description() const65 {66 return m_webIDBDatabase->description();67 }68 69 64 String IDBDatabaseProxy::version() const 70 65 { -
trunk/WebKit/chromium/src/IDBDatabaseProxy.h
r72771 r73264 44 44 45 45 virtual String name() const; 46 virtual String description() const;47 46 virtual String version() const; 48 47 virtual PassRefPtr<DOMStringList> objectStoreNames() const; -
trunk/WebKit/chromium/src/WebIDBKeyRange.cpp
r72767 r73264 48 48 } 49 49 50 // FIXME: Remove this after next roll.51 void WebIDBKeyRange::assign(const WebIDBKey& lower, const WebIDBKey& upper, unsigned short flags)52 {53 bool lowerOpen = !!(flags & 1);54 bool upperOpen = !!(flags & 2);55 56 if (lower.type() == WebIDBKey::InvalidType && upper.type() == WebIDBKey::InvalidType)57 m_private = 0;58 else59 m_private = IDBKeyRange::create(lower, upper, lowerOpen, upperOpen);60 }61 62 50 void WebIDBKeyRange::reset() 63 51 { 64 52 m_private.reset(); 65 }66 67 WebIDBKey WebIDBKeyRange::left() const68 {69 return lower();70 }71 72 WebIDBKey WebIDBKeyRange::right() const73 {74 return upper();75 53 } 76 54 … … 99 77 } 100 78 101 // FIXME: Remove this after next roll.102 unsigned short WebIDBKeyRange::flags() const103 {104 if (!m_private.get())105 return 0;106 107 unsigned short flags = 0;108 if (m_private->lowerOpen())109 flags |= 1;110 if (m_private->upperOpen())111 flags |= 2;112 return flags;113 }114 115 79 WebIDBKeyRange::WebIDBKeyRange(const PassRefPtr<IDBKeyRange>& value) 116 80 : m_private(value)
Note: See TracChangeset
for help on using the changeset viewer.