| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ |
| 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBIndex.h" |
| 12 | 12 |
| 13 class RendererWebIDBIndexImpl : public WebKit::WebIDBIndex { | 13 class RendererWebIDBIndexImpl : public WebKit::WebIDBIndex { |
| 14 public: | 14 public: |
| 15 explicit RendererWebIDBIndexImpl(int32 idb_index_id); | 15 explicit RendererWebIDBIndexImpl(int32 idb_index_id); |
| 16 virtual ~RendererWebIDBIndexImpl(); | 16 virtual ~RendererWebIDBIndexImpl(); |
| 17 | 17 |
| 18 // WebKit::WebIDBIndex | 18 // WebKit::WebIDBIndex |
| 19 virtual WebKit::WebString name() const; | 19 virtual WebKit::WebString name() const; |
| 20 virtual WebKit::WebString storeName() const; | 20 virtual WebKit::WebString storeName() const; |
| 21 virtual WebKit::WebString keyPathString() const; | 21 virtual WebKit::WebIDBKeyPath keyPath() const; |
| 22 virtual bool unique() const; | 22 virtual bool unique() const; |
| 23 virtual bool multiEntry() const; | 23 virtual bool multiEntry() const; |
| 24 | 24 |
| 25 virtual void openObjectCursor(const WebKit::WebIDBKeyRange& range, | 25 virtual void openObjectCursor(const WebKit::WebIDBKeyRange& range, |
| 26 unsigned short direction, | 26 unsigned short direction, |
| 27 WebKit::WebIDBCallbacks* callbacks, | 27 WebKit::WebIDBCallbacks* callbacks, |
| 28 const WebKit::WebIDBTransaction& transaction, | 28 const WebKit::WebIDBTransaction& transaction, |
| 29 WebKit::WebExceptionCode& ec); | 29 WebKit::WebExceptionCode& ec); |
| 30 virtual void openKeyCursor(const WebKit::WebIDBKeyRange& range, | 30 virtual void openKeyCursor(const WebKit::WebIDBKeyRange& range, |
| 31 unsigned short direction, | 31 unsigned short direction, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 51 virtual void getKey(const WebKit::WebIDBKeyRange& key_range, | 51 virtual void getKey(const WebKit::WebIDBKeyRange& key_range, |
| 52 WebKit::WebIDBCallbacks* callbacks, | 52 WebKit::WebIDBCallbacks* callbacks, |
| 53 const WebKit::WebIDBTransaction& transaction, | 53 const WebKit::WebIDBTransaction& transaction, |
| 54 WebKit::WebExceptionCode& ec); | 54 WebKit::WebExceptionCode& ec); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 int32 idb_index_id_; | 57 int32 idb_index_id_; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ | 60 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBINDEX_IMPL_H_ |
| OLD | NEW |