| 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_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 private: | 341 private: |
| 342 DISALLOW_COPY_AND_ASSIGN(Cursor); | 342 DISALLOW_COPY_AND_ASSIGN(Cursor); |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 virtual scoped_ptr<Cursor> OpenObjectStoreKeyCursor( | 345 virtual scoped_ptr<Cursor> OpenObjectStoreKeyCursor( |
| 346 IndexedDBBackingStore::Transaction* transaction, | 346 IndexedDBBackingStore::Transaction* transaction, |
| 347 int64 database_id, | 347 int64 database_id, |
| 348 int64 object_store_id, | 348 int64 object_store_id, |
| 349 const IndexedDBKeyRange& key_range, | 349 const IndexedDBKeyRange& key_range, |
| 350 indexed_db::CursorDirection, | 350 blink::WebIDBCursorDirection, |
| 351 leveldb::Status*); | 351 leveldb::Status*); |
| 352 virtual scoped_ptr<Cursor> OpenObjectStoreCursor( | 352 virtual scoped_ptr<Cursor> OpenObjectStoreCursor( |
| 353 IndexedDBBackingStore::Transaction* transaction, | 353 IndexedDBBackingStore::Transaction* transaction, |
| 354 int64 database_id, | 354 int64 database_id, |
| 355 int64 object_store_id, | 355 int64 object_store_id, |
| 356 const IndexedDBKeyRange& key_range, | 356 const IndexedDBKeyRange& key_range, |
| 357 indexed_db::CursorDirection, | 357 blink::WebIDBCursorDirection, |
| 358 leveldb::Status*); | 358 leveldb::Status*); |
| 359 virtual scoped_ptr<Cursor> OpenIndexKeyCursor( | 359 virtual scoped_ptr<Cursor> OpenIndexKeyCursor( |
| 360 IndexedDBBackingStore::Transaction* transaction, | 360 IndexedDBBackingStore::Transaction* transaction, |
| 361 int64 database_id, | 361 int64 database_id, |
| 362 int64 object_store_id, | 362 int64 object_store_id, |
| 363 int64 index_id, | 363 int64 index_id, |
| 364 const IndexedDBKeyRange& key_range, | 364 const IndexedDBKeyRange& key_range, |
| 365 indexed_db::CursorDirection, | 365 blink::WebIDBCursorDirection, |
| 366 leveldb::Status*); | 366 leveldb::Status*); |
| 367 virtual scoped_ptr<Cursor> OpenIndexCursor( | 367 virtual scoped_ptr<Cursor> OpenIndexCursor( |
| 368 IndexedDBBackingStore::Transaction* transaction, | 368 IndexedDBBackingStore::Transaction* transaction, |
| 369 int64 database_id, | 369 int64 database_id, |
| 370 int64 object_store_id, | 370 int64 object_store_id, |
| 371 int64 index_id, | 371 int64 index_id, |
| 372 const IndexedDBKeyRange& key_range, | 372 const IndexedDBKeyRange& key_range, |
| 373 indexed_db::CursorDirection, | 373 blink::WebIDBCursorDirection, |
| 374 leveldb::Status*); | 374 leveldb::Status*); |
| 375 | 375 |
| 376 class BlobChangeRecord { | 376 class BlobChangeRecord { |
| 377 public: | 377 public: |
| 378 BlobChangeRecord(const std::string& key, int64 object_store_id); | 378 BlobChangeRecord(const std::string& key, int64 object_store_id); |
| 379 ~BlobChangeRecord(); | 379 ~BlobChangeRecord(); |
| 380 const std::string& key() const { return key_; } | 380 const std::string& key() const { return key_; } |
| 381 int64 object_store_id() const { return object_store_id_; } | 381 int64 object_store_id() const { return object_store_id_; } |
| 382 void SetBlobInfo(std::vector<IndexedDBBlobInfo>* blob_info); | 382 void SetBlobInfo(std::vector<IndexedDBBlobInfo>* blob_info); |
| 383 std::vector<IndexedDBBlobInfo>& mutable_blob_info() { return blob_info_; } | 383 std::vector<IndexedDBBlobInfo>& mutable_blob_info() { return blob_info_; } |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 // will hold a reference to this backing store. | 583 // will hold a reference to this backing store. |
| 584 IndexedDBActiveBlobRegistry active_blob_registry_; | 584 IndexedDBActiveBlobRegistry active_blob_registry_; |
| 585 base::OneShotTimer<IndexedDBBackingStore> close_timer_; | 585 base::OneShotTimer<IndexedDBBackingStore> close_timer_; |
| 586 | 586 |
| 587 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 587 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 588 }; | 588 }; |
| 589 | 589 |
| 590 } // namespace content | 590 } // namespace content |
| 591 | 591 |
| 592 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 592 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |