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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test coverage for the (slightly incorrect) behavior in strict mode when our flag is not enabl… Created 4 years, 3 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 const std::string& message); 430 const std::string& message);
431 leveldb::Status GetObjectStores( 431 leveldb::Status GetObjectStores(
432 int64_t database_id, 432 int64_t database_id,
433 std::map<int64_t, IndexedDBObjectStoreMetadata>* map) WARN_UNUSED_RESULT; 433 std::map<int64_t, IndexedDBObjectStoreMetadata>* map) WARN_UNUSED_RESULT;
434 virtual leveldb::Status CreateObjectStore( 434 virtual leveldb::Status CreateObjectStore(
435 IndexedDBBackingStore::Transaction* transaction, 435 IndexedDBBackingStore::Transaction* transaction,
436 int64_t database_id, 436 int64_t database_id,
437 int64_t object_store_id, 437 int64_t object_store_id,
438 const base::string16& name, 438 const base::string16& name,
439 const IndexedDBKeyPath& key_path, 439 const IndexedDBKeyPath& key_path,
440 bool auto_increment); 440 bool auto_increment) WARN_UNUSED_RESULT;
441 virtual leveldb::Status DeleteObjectStore( 441 virtual leveldb::Status DeleteObjectStore(
442 IndexedDBBackingStore::Transaction* transaction, 442 IndexedDBBackingStore::Transaction* transaction,
443 int64_t database_id, 443 int64_t database_id,
444 int64_t object_store_id) WARN_UNUSED_RESULT; 444 int64_t object_store_id) WARN_UNUSED_RESULT;
445 virtual leveldb::Status RenameObjectStore(
446 IndexedDBBackingStore::Transaction* transaction,
447 int64_t database_id,
448 int64_t object_store_id,
449 const base::string16& name) WARN_UNUSED_RESULT;
445 450
446 virtual leveldb::Status GetRecord( 451 virtual leveldb::Status GetRecord(
447 IndexedDBBackingStore::Transaction* transaction, 452 IndexedDBBackingStore::Transaction* transaction,
448 int64_t database_id, 453 int64_t database_id,
449 int64_t object_store_id, 454 int64_t object_store_id,
450 const IndexedDBKey& key, 455 const IndexedDBKey& key,
451 IndexedDBValue* record) WARN_UNUSED_RESULT; 456 IndexedDBValue* record) WARN_UNUSED_RESULT;
452 virtual leveldb::Status PutRecord( 457 virtual leveldb::Status PutRecord(
453 IndexedDBBackingStore::Transaction* transaction, 458 IndexedDBBackingStore::Transaction* transaction,
454 int64_t database_id, 459 int64_t database_id,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 int64_t index_id, 503 int64_t index_id,
499 const base::string16& name, 504 const base::string16& name,
500 const IndexedDBKeyPath& key_path, 505 const IndexedDBKeyPath& key_path,
501 bool is_unique, 506 bool is_unique,
502 bool is_multi_entry) WARN_UNUSED_RESULT; 507 bool is_multi_entry) WARN_UNUSED_RESULT;
503 virtual leveldb::Status DeleteIndex( 508 virtual leveldb::Status DeleteIndex(
504 IndexedDBBackingStore::Transaction* transaction, 509 IndexedDBBackingStore::Transaction* transaction,
505 int64_t database_id, 510 int64_t database_id,
506 int64_t object_store_id, 511 int64_t object_store_id,
507 int64_t index_id) WARN_UNUSED_RESULT; 512 int64_t index_id) WARN_UNUSED_RESULT;
513 virtual leveldb::Status RenameIndex(
514 IndexedDBBackingStore::Transaction* transaction,
515 int64_t database_id,
516 int64_t object_store_id,
517 int64_t index_id,
518 const base::string16& new_name) WARN_UNUSED_RESULT;
508 virtual leveldb::Status PutIndexDataForRecord( 519 virtual leveldb::Status PutIndexDataForRecord(
509 IndexedDBBackingStore::Transaction* transaction, 520 IndexedDBBackingStore::Transaction* transaction,
510 int64_t database_id, 521 int64_t database_id,
511 int64_t object_store_id, 522 int64_t object_store_id,
512 int64_t index_id, 523 int64_t index_id,
513 const IndexedDBKey& key, 524 const IndexedDBKey& key,
514 const RecordIdentifier& record) WARN_UNUSED_RESULT; 525 const RecordIdentifier& record) WARN_UNUSED_RESULT;
515 virtual leveldb::Status GetPrimaryKeyViaIndex( 526 virtual leveldb::Status GetPrimaryKeyViaIndex(
516 IndexedDBBackingStore::Transaction* transaction, 527 IndexedDBBackingStore::Transaction* transaction,
517 int64_t database_id, 528 int64_t database_id,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // complete. While > 0, temporary journal entries may exist so out-of-band 685 // complete. While > 0, temporary journal entries may exist so out-of-band
675 // journal cleaning must be deferred. 686 // journal cleaning must be deferred.
676 size_t committing_transaction_count_; 687 size_t committing_transaction_count_;
677 688
678 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); 689 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore);
679 }; 690 };
680 691
681 } // namespace content 692 } // namespace content
682 693
683 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 694 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698