| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 scoped_ptr<IndexedDBKey> primary_key, | 95 scoped_ptr<IndexedDBKey> primary_key, |
| 96 const std::vector<int64>& index_ids, | 96 const std::vector<int64>& index_ids, |
| 97 const std::vector<IndexKeys>& index_keys) = 0; | 97 const std::vector<IndexKeys>& index_keys) = 0; |
| 98 virtual void SetIndexesReady(int64 transaction_id, | 98 virtual void SetIndexesReady(int64 transaction_id, |
| 99 int64 object_store_id, | 99 int64 object_store_id, |
| 100 const std::vector<int64>& index_ids) = 0; | 100 const std::vector<int64>& index_ids) = 0; |
| 101 virtual void OpenCursor( | 101 virtual void OpenCursor( |
| 102 int64 transaction_id, | 102 int64 transaction_id, |
| 103 int64 object_store_id, | 103 int64 object_store_id, |
| 104 int64 index_id, | 104 int64 index_id, |
| 105 scoped_ptr<IndexedDBKeyRange> key_Range, | 105 scoped_ptr<IndexedDBKeyRange> key_range, |
| 106 indexed_db::CursorDirection direction, | 106 indexed_db::CursorDirection direction, |
| 107 bool key_only, | 107 bool key_only, |
| 108 TaskType task_type, | 108 TaskType task_type, |
| 109 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 109 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 110 virtual void Count(int64 transaction_id, | 110 virtual void Count(int64 transaction_id, |
| 111 int64 object_store_id, | 111 int64 object_store_id, |
| 112 int64 index_id, | 112 int64 index_id, |
| 113 scoped_ptr<IndexedDBKeyRange> key_range, | 113 scoped_ptr<IndexedDBKeyRange> key_range, |
| 114 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 114 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 115 virtual void DeleteRange( | 115 virtual void DeleteRange( |
| 116 int64 transaction_id, | 116 int64 transaction_id, |
| 117 int64 object_store_id, | 117 int64 object_store_id, |
| 118 scoped_ptr<IndexedDBKeyRange> key_range, | 118 scoped_ptr<IndexedDBKeyRange> key_range, |
| 119 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 119 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 120 virtual void Clear(int64 transaction_id, | 120 virtual void Clear(int64 transaction_id, |
| 121 int64 object_store_id, | 121 int64 object_store_id, |
| 122 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 122 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 123 | 123 |
| 124 protected: | 124 protected: |
| 125 virtual ~IndexedDBDatabase() {} | 125 virtual ~IndexedDBDatabase() {} |
| 126 friend class base::RefCounted<IndexedDBDatabase>; | 126 friend class base::RefCounted<IndexedDBDatabase>; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| 130 | 130 |
| 131 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 131 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |