| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 125 void GetAll(int64 transaction_id, |
| 126 int64 object_store_id, | 126 int64 object_store_id, |
| 127 int64 index_id, |
| 127 scoped_ptr<IndexedDBKeyRange> key_range, | 128 scoped_ptr<IndexedDBKeyRange> key_range, |
| 128 int64 max_count, | 129 int64 max_count, |
| 129 scoped_refptr<IndexedDBCallbacks> callbacks); | 130 scoped_refptr<IndexedDBCallbacks> callbacks); |
| 130 void Put(int64 transaction_id, | 131 void Put(int64 transaction_id, |
| 131 int64 object_store_id, | 132 int64 object_store_id, |
| 132 IndexedDBValue* value, | 133 IndexedDBValue* value, |
| 133 ScopedVector<storage::BlobDataHandle>* handles, | 134 ScopedVector<storage::BlobDataHandle>* handles, |
| 134 scoped_ptr<IndexedDBKey> key, | 135 scoped_ptr<IndexedDBKey> key, |
| 135 blink::WebIDBPutMode mode, | 136 blink::WebIDBPutMode mode, |
| 136 scoped_refptr<IndexedDBCallbacks> callbacks, | 137 scoped_refptr<IndexedDBCallbacks> callbacks, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 void DeleteIndexAbortOperation(int64 object_store_id, | 200 void DeleteIndexAbortOperation(int64 object_store_id, |
| 200 const IndexedDBIndexMetadata& index_metadata, | 201 const IndexedDBIndexMetadata& index_metadata, |
| 201 IndexedDBTransaction* transaction); | 202 IndexedDBTransaction* transaction); |
| 202 void GetOperation(int64 object_store_id, | 203 void GetOperation(int64 object_store_id, |
| 203 int64 index_id, | 204 int64 index_id, |
| 204 scoped_ptr<IndexedDBKeyRange> key_range, | 205 scoped_ptr<IndexedDBKeyRange> key_range, |
| 205 indexed_db::CursorType cursor_type, | 206 indexed_db::CursorType cursor_type, |
| 206 scoped_refptr<IndexedDBCallbacks> callbacks, | 207 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 207 IndexedDBTransaction* transaction); | 208 IndexedDBTransaction* transaction); |
| 208 void GetAllOperation(int64 object_store_id, | 209 void GetAllOperation(int64 object_store_id, |
| 210 int64 index_id, |
| 209 scoped_ptr<IndexedDBKeyRange> key_range, | 211 scoped_ptr<IndexedDBKeyRange> key_range, |
| 210 int64 max_count, | 212 int64 max_count, |
| 211 scoped_refptr<IndexedDBCallbacks> callbacks, | 213 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 212 IndexedDBTransaction* transaction); | 214 IndexedDBTransaction* transaction); |
| 213 struct PutOperationParams; | 215 struct PutOperationParams; |
| 214 void PutOperation(scoped_ptr<PutOperationParams> params, | 216 void PutOperation(scoped_ptr<PutOperationParams> params, |
| 215 IndexedDBTransaction* transaction); | 217 IndexedDBTransaction* transaction); |
| 216 void SetIndexesReadyOperation(size_t index_count, | 218 void SetIndexesReadyOperation(size_t index_count, |
| 217 IndexedDBTransaction* transaction); | 219 IndexedDBTransaction* transaction); |
| 218 struct OpenCursorOperationParams; | 220 struct OpenCursorOperationParams; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 PendingDeleteCallList pending_delete_calls_; | 296 PendingDeleteCallList pending_delete_calls_; |
| 295 | 297 |
| 296 ConnectionSet connections_; | 298 ConnectionSet connections_; |
| 297 | 299 |
| 298 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); | 300 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); |
| 299 }; | 301 }; |
| 300 | 302 |
| 301 } // namespace content | 303 } // namespace content |
| 302 | 304 |
| 303 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 305 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |