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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 LevelDBFactory* factory); | 70 LevelDBFactory* factory); |
71 | 71 |
72 virtual std::vector<string16> GetDatabaseNames(); | 72 virtual std::vector<string16> GetDatabaseNames(); |
73 virtual bool GetIDBDatabaseMetaData(const string16& name, | 73 virtual bool GetIDBDatabaseMetaData(const string16& name, |
74 IndexedDBDatabaseMetadata* metadata, | 74 IndexedDBDatabaseMetadata* metadata, |
75 bool* success) WARN_UNUSED_RESULT; | 75 bool* success) WARN_UNUSED_RESULT; |
76 virtual bool CreateIDBDatabaseMetaData(const string16& name, | 76 virtual bool CreateIDBDatabaseMetaData(const string16& name, |
77 const string16& version, | 77 const string16& version, |
78 int64 int_version, | 78 int64 int_version, |
79 int64* row_id); | 79 int64* row_id); |
80 virtual bool UpdateIDBDatabaseMetaData( | |
81 IndexedDBBackingStore::Transaction* transaction, | |
82 int64 row_id, | |
83 const string16& version); | |
84 virtual bool UpdateIDBDatabaseIntVersion( | 80 virtual bool UpdateIDBDatabaseIntVersion( |
85 IndexedDBBackingStore::Transaction* transaction, | 81 IndexedDBBackingStore::Transaction* transaction, |
86 int64 row_id, | 82 int64 row_id, |
87 int64 int_version); | 83 int64 int_version); |
88 virtual bool DeleteDatabase(const string16& name); | 84 virtual bool DeleteDatabase(const string16& name); |
89 | 85 |
90 bool GetObjectStores(int64 database_id, | 86 bool GetObjectStores(int64 database_id, |
91 IndexedDBDatabaseMetadata::ObjectStoreMap* map) | 87 IndexedDBDatabaseMetadata::ObjectStoreMap* map) |
92 WARN_UNUSED_RESULT; | 88 WARN_UNUSED_RESULT; |
93 virtual bool CreateObjectStore( | 89 virtual bool CreateObjectStore( |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 const std::string origin_identifier_; | 324 const std::string origin_identifier_; |
329 | 325 |
330 scoped_ptr<LevelDBDatabase> db_; | 326 scoped_ptr<LevelDBDatabase> db_; |
331 scoped_ptr<LevelDBComparator> comparator_; | 327 scoped_ptr<LevelDBComparator> comparator_; |
332 base::OneShotTimer<IndexedDBBackingStore> close_timer_; | 328 base::OneShotTimer<IndexedDBBackingStore> close_timer_; |
333 }; | 329 }; |
334 | 330 |
335 } // namespace content | 331 } // namespace content |
336 | 332 |
337 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 333 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
OLD | NEW |