diff options
Diffstat (limited to 'Source/WebKit/chromium/public/WebIDBObjectStore.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebIDBObjectStore.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/WebKit/chromium/public/WebIDBObjectStore.h b/Source/WebKit/chromium/public/WebIDBObjectStore.h index 981f5ec7e..dcf485692 100644 --- a/Source/WebKit/chromium/public/WebIDBObjectStore.h +++ b/Source/WebKit/chromium/public/WebIDBObjectStore.h @@ -29,6 +29,7 @@ #include "WebExceptionCode.h" #include "WebDOMStringList.h" #include "WebIDBCallbacks.h" +#include "WebIDBKeyPath.h" #include "WebIDBTransaction.h" #include "platform/WebCommon.h" #include "platform/WebString.h" @@ -48,7 +49,11 @@ public: WEBKIT_ASSERT_NOT_REACHED(); return WebString(); } - virtual WebString keyPath() const + virtual WebIDBKeyPath keyPath() const + { + return WebIDBKeyPath(keyPathString()); + } + virtual WebString keyPathString() const { WEBKIT_ASSERT_NOT_REACHED(); return WebString(); @@ -59,7 +64,7 @@ public: return WebDOMStringList(); } - virtual void get(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } + virtual void get(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } enum PutMode { AddOrUpdate, @@ -71,8 +76,15 @@ public: virtual void deleteFunction(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void deleteFunction(const WebIDBKeyRange&, WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } virtual void clear(WebIDBCallbacks*, const WebIDBTransaction&, WebExceptionCode&) { WEBKIT_ASSERT_NOT_REACHED(); } + + // FIXME: Remove WebString keyPath overload once callers are updated. + // http://webkit.org/b/84207 virtual WebIDBIndex* createIndex(const WebString& name, const WebString& keyPath, bool unique, bool multiEntry, const WebIDBTransaction& transaction, WebExceptionCode& ec) { + return createIndex(name, WebIDBKeyPath(keyPath), unique, multiEntry, transaction, ec); + } + virtual WebIDBIndex* createIndex(const WebString&, const WebIDBKeyPath&, bool, bool, const WebIDBTransaction&, WebExceptionCode&) + { WEBKIT_ASSERT_NOT_REACHED(); return 0; } |
