diff options
Diffstat (limited to 'content/renderer/renderer_webidbindex_impl.h')
-rw-r--r-- | content/renderer/renderer_webidbindex_impl.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/content/renderer/renderer_webidbindex_impl.h b/content/renderer/renderer_webidbindex_impl.h new file mode 100644 index 0000000..e085122 --- /dev/null +++ b/content/renderer/renderer_webidbindex_impl.h @@ -0,0 +1,47 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ +#define CONTENT_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ +#pragma once + +#include "base/basictypes.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" + +class RendererWebIDBIndexImpl : public WebKit::WebIDBIndex { + public: + explicit RendererWebIDBIndexImpl(int32 idb_index_id); + virtual ~RendererWebIDBIndexImpl(); + + // WebKit::WebIDBIndex + virtual WebKit::WebString name() const; + virtual WebKit::WebString storeName() const; + virtual WebKit::WebString keyPath() const; + virtual bool unique() const; + + virtual void openObjectCursor(const WebKit::WebIDBKeyRange& range, + unsigned short direction, + WebKit::WebIDBCallbacks* callbacks, + const WebKit::WebIDBTransaction& transaction, + WebKit::WebExceptionCode& ec); + virtual void openKeyCursor(const WebKit::WebIDBKeyRange& range, + unsigned short direction, + WebKit::WebIDBCallbacks* callbacks, + const WebKit::WebIDBTransaction& transaction, + WebKit::WebExceptionCode& ec); + virtual void getObject(const WebKit::WebIDBKey& key, + WebKit::WebIDBCallbacks* callbacks, + const WebKit::WebIDBTransaction& transaction, + WebKit::WebExceptionCode& ec); + virtual void getKey(const WebKit::WebIDBKey& key, + WebKit::WebIDBCallbacks* callbacks, + const WebKit::WebIDBTransaction& transaction, + WebKit::WebExceptionCode& ec); + + private: + int32 idb_index_id_; +}; + +#endif // CONTENT_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ |