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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Called by transactions to report failure committing to the backing store. | 116 // Called by transactions to report failure committing to the backing store. |
117 void TransactionCommitFailed(const leveldb::Status& status); | 117 void TransactionCommitFailed(const leveldb::Status& status); |
118 | 118 |
119 void Get(int64 transaction_id, | 119 void Get(int64 transaction_id, |
120 int64 object_store_id, | 120 int64 object_store_id, |
121 int64 index_id, | 121 int64 index_id, |
122 scoped_ptr<IndexedDBKeyRange> key_range, | 122 scoped_ptr<IndexedDBKeyRange> key_range, |
123 bool key_only, | 123 bool key_only, |
124 scoped_refptr<IndexedDBCallbacks> callbacks); | 124 scoped_refptr<IndexedDBCallbacks> callbacks); |
| 125 void GetAll(int64 transaction_id, |
| 126 int64 object_store_id, |
| 127 scoped_ptr<IndexedDBKeyRange> key_range, |
| 128 int64 max_count, |
| 129 scoped_refptr<IndexedDBCallbacks> callbacks); |
125 void Put(int64 transaction_id, | 130 void Put(int64 transaction_id, |
126 int64 object_store_id, | 131 int64 object_store_id, |
127 IndexedDBValue* value, | 132 IndexedDBValue* value, |
128 ScopedVector<storage::BlobDataHandle>* handles, | 133 ScopedVector<storage::BlobDataHandle>* handles, |
129 scoped_ptr<IndexedDBKey> key, | 134 scoped_ptr<IndexedDBKey> key, |
130 blink::WebIDBPutMode mode, | 135 blink::WebIDBPutMode mode, |
131 scoped_refptr<IndexedDBCallbacks> callbacks, | 136 scoped_refptr<IndexedDBCallbacks> callbacks, |
132 const std::vector<IndexKeys>& index_keys); | 137 const std::vector<IndexKeys>& index_keys); |
133 void SetIndexKeys(int64 transaction_id, | 138 void SetIndexKeys(int64 transaction_id, |
134 int64 object_store_id, | 139 int64 object_store_id, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 IndexedDBTransaction* transaction); | 198 IndexedDBTransaction* transaction); |
194 void DeleteIndexAbortOperation(int64 object_store_id, | 199 void DeleteIndexAbortOperation(int64 object_store_id, |
195 const IndexedDBIndexMetadata& index_metadata, | 200 const IndexedDBIndexMetadata& index_metadata, |
196 IndexedDBTransaction* transaction); | 201 IndexedDBTransaction* transaction); |
197 void GetOperation(int64 object_store_id, | 202 void GetOperation(int64 object_store_id, |
198 int64 index_id, | 203 int64 index_id, |
199 scoped_ptr<IndexedDBKeyRange> key_range, | 204 scoped_ptr<IndexedDBKeyRange> key_range, |
200 indexed_db::CursorType cursor_type, | 205 indexed_db::CursorType cursor_type, |
201 scoped_refptr<IndexedDBCallbacks> callbacks, | 206 scoped_refptr<IndexedDBCallbacks> callbacks, |
202 IndexedDBTransaction* transaction); | 207 IndexedDBTransaction* transaction); |
| 208 void GetAllOperation(int64 object_store_id, |
| 209 scoped_ptr<IndexedDBKeyRange> key_range, |
| 210 int64 max_count, |
| 211 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 212 IndexedDBTransaction* transaction); |
203 struct PutOperationParams; | 213 struct PutOperationParams; |
204 void PutOperation(scoped_ptr<PutOperationParams> params, | 214 void PutOperation(scoped_ptr<PutOperationParams> params, |
205 IndexedDBTransaction* transaction); | 215 IndexedDBTransaction* transaction); |
206 void SetIndexesReadyOperation(size_t index_count, | 216 void SetIndexesReadyOperation(size_t index_count, |
207 IndexedDBTransaction* transaction); | 217 IndexedDBTransaction* transaction); |
208 struct OpenCursorOperationParams; | 218 struct OpenCursorOperationParams; |
209 void OpenCursorOperation(scoped_ptr<OpenCursorOperationParams> params, | 219 void OpenCursorOperation(scoped_ptr<OpenCursorOperationParams> params, |
210 IndexedDBTransaction* transaction); | 220 IndexedDBTransaction* transaction); |
211 void CountOperation(int64 object_store_id, | 221 void CountOperation(int64 object_store_id, |
212 int64 index_id, | 222 int64 index_id, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 PendingDeleteCallList pending_delete_calls_; | 294 PendingDeleteCallList pending_delete_calls_; |
285 | 295 |
286 ConnectionSet connections_; | 296 ConnectionSet connections_; |
287 | 297 |
288 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); | 298 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); |
289 }; | 299 }; |
290 | 300 |
291 } // namespace content | 301 } // namespace content |
292 | 302 |
293 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 303 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
OLD | NEW |