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

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

Issue 1706413002: Indexed DB: Rename "int version" to "version" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 void GrantChildProcessPermissions(int child_process_id); 402 void GrantChildProcessPermissions(int child_process_id);
403 403
404 // Compact is public for testing. 404 // Compact is public for testing.
405 virtual void Compact(); 405 virtual void Compact();
406 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status*); 406 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status*);
407 virtual leveldb::Status GetIDBDatabaseMetaData( 407 virtual leveldb::Status GetIDBDatabaseMetaData(
408 const base::string16& name, 408 const base::string16& name,
409 IndexedDBDatabaseMetadata* metadata, 409 IndexedDBDatabaseMetadata* metadata,
410 bool* success) WARN_UNUSED_RESULT; 410 bool* success) WARN_UNUSED_RESULT;
411 virtual leveldb::Status CreateIDBDatabaseMetaData( 411 virtual leveldb::Status CreateIDBDatabaseMetaData(const base::string16& name,
412 const base::string16& name, 412 int64_t version,
413 int64_t int_version, 413 int64_t* row_id);
414 int64_t* row_id);
415 virtual bool UpdateIDBDatabaseIntVersion( 414 virtual bool UpdateIDBDatabaseIntVersion(
416 IndexedDBBackingStore::Transaction* transaction, 415 IndexedDBBackingStore::Transaction* transaction,
417 int64_t row_id, 416 int64_t row_id,
418 int64_t int_version); 417 int64_t version);
419 virtual leveldb::Status DeleteDatabase(const base::string16& name); 418 virtual leveldb::Status DeleteDatabase(const base::string16& name);
420 419
421 // Assumes caller has already closed the backing store. 420 // Assumes caller has already closed the backing store.
422 static leveldb::Status DestroyBackingStore(const base::FilePath& path_base, 421 static leveldb::Status DestroyBackingStore(const base::FilePath& path_base,
423 const GURL& origin_url); 422 const GURL& origin_url);
424 static bool RecordCorruptionInfo(const base::FilePath& path_base, 423 static bool RecordCorruptionInfo(const base::FilePath& path_base,
425 const GURL& origin_url, 424 const GURL& origin_url,
426 const std::string& message); 425 const std::string& message);
427 leveldb::Status GetObjectStores( 426 leveldb::Status GetObjectStores(
428 int64_t database_id, 427 int64_t database_id,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 // complete. While > 0, temporary journal entries may exist so out-of-band 665 // complete. While > 0, temporary journal entries may exist so out-of-band
667 // journal cleaning must be deferred. 666 // journal cleaning must be deferred.
668 size_t committing_transaction_count_; 667 size_t committing_transaction_count_;
669 668
670 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); 669 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore);
671 }; 670 };
672 671
673 } // namespace content 672 } // namespace content
674 673
675 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 674 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698