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_DATABASE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int64 object_store_id, | 83 int64 object_store_id, |
84 const base::string16& name, | 84 const base::string16& name, |
85 const IndexedDBKeyPath& key_path, | 85 const IndexedDBKeyPath& key_path, |
86 bool auto_increment); | 86 bool auto_increment); |
87 void DeleteObjectStore(int64 transaction_id, int64 object_store_id); | 87 void DeleteObjectStore(int64 transaction_id, int64 object_store_id); |
88 void CreateTransaction(int64 transaction_id, | 88 void CreateTransaction(int64 transaction_id, |
89 IndexedDBConnection* connection, | 89 IndexedDBConnection* connection, |
90 const std::vector<int64>& object_store_ids, | 90 const std::vector<int64>& object_store_ids, |
91 uint16 mode); | 91 uint16 mode); |
92 void Close(IndexedDBConnection* connection, bool forced); | 92 void Close(IndexedDBConnection* connection, bool forced); |
| 93 void ForceClose(); |
93 | 94 |
94 void Commit(int64 transaction_id); | 95 void Commit(int64 transaction_id); |
95 void Abort(int64 transaction_id); | 96 void Abort(int64 transaction_id); |
96 void Abort(int64 transaction_id, const IndexedDBDatabaseError& error); | 97 void Abort(int64 transaction_id, const IndexedDBDatabaseError& error); |
97 | 98 |
98 void CreateIndex(int64 transaction_id, | 99 void CreateIndex(int64 transaction_id, |
99 int64 object_store_id, | 100 int64 object_store_id, |
100 int64 index_id, | 101 int64 index_id, |
101 const base::string16& name, | 102 const base::string16& name, |
102 const IndexedDBKeyPath& key_path, | 103 const IndexedDBKeyPath& key_path, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; | 291 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; |
291 PendingDeleteCallList pending_delete_calls_; | 292 PendingDeleteCallList pending_delete_calls_; |
292 | 293 |
293 typedef list_set<IndexedDBConnection*> ConnectionSet; | 294 typedef list_set<IndexedDBConnection*> ConnectionSet; |
294 ConnectionSet connections_; | 295 ConnectionSet connections_; |
295 }; | 296 }; |
296 | 297 |
297 } // namespace content | 298 } // namespace content |
298 | 299 |
299 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 300 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
OLD | NEW |