Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 virtual leveldb::Status DeleteDatabase(const base::string16& name); 420 virtual leveldb::Status DeleteDatabase(const base::string16& name);
421 421
422 // Assumes caller has already closed the backing store. 422 // Assumes caller has already closed the backing store.
423 static leveldb::Status DestroyBackingStore(const base::FilePath& path_base, 423 static leveldb::Status DestroyBackingStore(const base::FilePath& path_base,
424 const url::Origin& origin); 424 const url::Origin& origin);
425 static bool RecordCorruptionInfo(const base::FilePath& path_base, 425 static bool RecordCorruptionInfo(const base::FilePath& path_base,
426 const url::Origin& origin, 426 const url::Origin& origin,
427 const std::string& message); 427 const std::string& message);
428 leveldb::Status GetObjectStores( 428 leveldb::Status GetObjectStores(
429 int64_t database_id, 429 int64_t database_id,
430 IndexedDBDatabaseMetadata::ObjectStoreMap* map) WARN_UNUSED_RESULT; 430 std::map<int64_t, IndexedDBObjectStoreMetadata>* map) WARN_UNUSED_RESULT;
431 virtual leveldb::Status CreateObjectStore( 431 virtual leveldb::Status CreateObjectStore(
432 IndexedDBBackingStore::Transaction* transaction, 432 IndexedDBBackingStore::Transaction* transaction,
433 int64_t database_id, 433 int64_t database_id,
434 int64_t object_store_id, 434 int64_t object_store_id,
435 const base::string16& name, 435 const base::string16& name,
436 const IndexedDBKeyPath& key_path, 436 const IndexedDBKeyPath& key_path,
437 bool auto_increment); 437 bool auto_increment);
438 virtual leveldb::Status DeleteObjectStore( 438 virtual leveldb::Status DeleteObjectStore(
439 IndexedDBBackingStore::Transaction* transaction, 439 IndexedDBBackingStore::Transaction* transaction,
440 int64_t database_id, 440 int64_t database_id,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 leveldb::Status FindKeyInIndex( 614 leveldb::Status FindKeyInIndex(
615 IndexedDBBackingStore::Transaction* transaction, 615 IndexedDBBackingStore::Transaction* transaction,
616 int64_t database_id, 616 int64_t database_id,
617 int64_t object_store_id, 617 int64_t object_store_id,
618 int64_t index_id, 618 int64_t index_id,
619 const IndexedDBKey& key, 619 const IndexedDBKey& key,
620 std::string* found_encoded_primary_key, 620 std::string* found_encoded_primary_key,
621 bool* found); 621 bool* found);
622 leveldb::Status GetIndexes(int64_t database_id, 622 leveldb::Status GetIndexes(int64_t database_id,
623 int64_t object_store_id, 623 int64_t object_store_id,
624 IndexedDBObjectStoreMetadata::IndexMap* map) 624 std::map<int64_t, IndexedDBIndexMetadata>* map)
625 WARN_UNUSED_RESULT; 625 WARN_UNUSED_RESULT;
626 626
627 // Remove the blob directory for the specified database and all contained 627 // Remove the blob directory for the specified database and all contained
628 // blob files. 628 // blob files.
629 bool RemoveBlobDirectory(int64_t database_id) const; 629 bool RemoveBlobDirectory(int64_t database_id) const;
630 630
631 // Synchronously read the key-specified blob journal entry from the backing 631 // Synchronously read the key-specified blob journal entry from the backing
632 // store, delete all referenced blob files, and erase the journal entry. 632 // store, delete all referenced blob files, and erase the journal entry.
633 // This must not be used while temporary entries are present e.g. during 633 // This must not be used while temporary entries are present e.g. during
634 // a two-stage transaction commit with blobs. 634 // a two-stage transaction commit with blobs.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 // complete. While > 0, temporary journal entries may exist so out-of-band 668 // complete. While > 0, temporary journal entries may exist so out-of-band
669 // journal cleaning must be deferred. 669 // journal cleaning must be deferred.
670 size_t committing_transaction_count_; 670 size_t committing_transaction_count_;
671 671
672 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); 672 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore);
673 }; 673 };
674 674
675 } // namespace content 675 } // namespace content
676 676
677 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 677 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698