| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ | |
| 6 #define CHROME_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" | |
| 12 | |
| 13 class RendererWebIDBIndexImpl : public WebKit::WebIDBIndex { | |
| 14 public: | |
| 15 explicit RendererWebIDBIndexImpl(int32 idb_index_id); | |
| 16 virtual ~RendererWebIDBIndexImpl(); | |
| 17 | |
| 18 // WebKit::WebIDBIndex | |
| 19 virtual WebKit::WebString name() const; | |
| 20 virtual WebKit::WebString storeName() const; | |
| 21 virtual WebKit::WebString keyPath() const; | |
| 22 virtual bool unique() const; | |
| 23 | |
| 24 virtual void openObjectCursor(const WebKit::WebIDBKeyRange& range, | |
| 25 unsigned short direction, | |
| 26 WebKit::WebIDBCallbacks* callbacks, | |
| 27 const WebKit::WebIDBTransaction& transaction, | |
| 28 WebKit::WebExceptionCode& ec); | |
| 29 virtual void openKeyCursor(const WebKit::WebIDBKeyRange& range, | |
| 30 unsigned short direction, | |
| 31 WebKit::WebIDBCallbacks* callbacks, | |
| 32 const WebKit::WebIDBTransaction& transaction, | |
| 33 WebKit::WebExceptionCode& ec); | |
| 34 virtual void getObject(const WebKit::WebIDBKey& key, | |
| 35 WebKit::WebIDBCallbacks* callbacks, | |
| 36 const WebKit::WebIDBTransaction& transaction, | |
| 37 WebKit::WebExceptionCode& ec); | |
| 38 virtual void getKey(const WebKit::WebIDBKey& key, | |
| 39 WebKit::WebIDBCallbacks* callbacks, | |
| 40 const WebKit::WebIDBTransaction& transaction, | |
| 41 WebKit::WebExceptionCode& ec); | |
| 42 | |
| 43 private: | |
| 44 int32 idb_index_id_; | |
| 45 }; | |
| 46 | |
| 47 #endif // CHROME_RENDERER_RENDERER_WEBIDBINDEX_IMPL_H_ | |
| OLD | NEW |