| 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 <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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |