| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBIDBOBJECTSTORE_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" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const WebKit::WebIDBTransaction& transaction, | 43 const WebKit::WebIDBTransaction& transaction, |
| 44 WebKit::WebExceptionCode& ec); | 44 WebKit::WebExceptionCode& ec); |
| 45 virtual void clear(WebKit::WebIDBCallbacks* callbacks, | 45 virtual void clear(WebKit::WebIDBCallbacks* callbacks, |
| 46 const WebKit::WebIDBTransaction& transaction, | 46 const WebKit::WebIDBTransaction& transaction, |
| 47 WebKit::WebExceptionCode& ec); | 47 WebKit::WebExceptionCode& ec); |
| 48 | 48 |
| 49 virtual WebKit::WebIDBIndex* createIndex( | 49 virtual WebKit::WebIDBIndex* createIndex( |
| 50 const WebKit::WebString& name, | 50 const WebKit::WebString& name, |
| 51 const WebKit::WebString& key_path, | 51 const WebKit::WebString& key_path, |
| 52 bool unique, | 52 bool unique, |
| 53 bool multi_entry, |
| 53 const WebKit::WebIDBTransaction& transaction, | 54 const WebKit::WebIDBTransaction& transaction, |
| 54 WebKit::WebExceptionCode& ec); | 55 WebKit::WebExceptionCode& ec); |
| 55 // Transfers ownership of the WebIDBIndex to the caller. | 56 // Transfers ownership of the WebIDBIndex to the caller. |
| 56 virtual WebKit::WebIDBIndex* index(const WebKit::WebString& name, | 57 virtual WebKit::WebIDBIndex* index(const WebKit::WebString& name, |
| 57 WebKit::WebExceptionCode& ec); | 58 WebKit::WebExceptionCode& ec); |
| 58 virtual void deleteIndex(const WebKit::WebString& name, | 59 virtual void deleteIndex(const WebKit::WebString& name, |
| 59 const WebKit::WebIDBTransaction& transaction, | 60 const WebKit::WebIDBTransaction& transaction, |
| 60 WebKit::WebExceptionCode& ec); | 61 WebKit::WebExceptionCode& ec); |
| 61 | 62 |
| 62 virtual void openCursor(const WebKit::WebIDBKeyRange& idb_key_range, | 63 virtual void openCursor(const WebKit::WebIDBKeyRange& idb_key_range, |
| 63 unsigned short direction, | 64 unsigned short direction, |
| 64 WebKit::WebIDBCallbacks* callbacks, | 65 WebKit::WebIDBCallbacks* callbacks, |
| 65 const WebKit::WebIDBTransaction& transaction, | 66 const WebKit::WebIDBTransaction& transaction, |
| 66 WebKit::WebExceptionCode& ec); | 67 WebKit::WebExceptionCode& ec); |
| 67 | 68 |
| 68 private: | 69 private: |
| 69 int32 idb_object_store_id_; | 70 int32 idb_object_store_id_; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 #endif // CONTENT_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ | 73 #endif // CONTENT_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ |
| OLD | NEW |