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

Side by Side Diff: trunk/src/content/browser/indexed_db/indexed_db_database.h

Issue 134503003: Revert 244240 "IndexedDBFactory now ForceCloses databases." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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_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
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();
94 93
95 void Commit(int64 transaction_id); 94 void Commit(int64 transaction_id);
96 void Abort(int64 transaction_id); 95 void Abort(int64 transaction_id);
97 void Abort(int64 transaction_id, const IndexedDBDatabaseError& error); 96 void Abort(int64 transaction_id, const IndexedDBDatabaseError& error);
98 97
99 void CreateIndex(int64 transaction_id, 98 void CreateIndex(int64 transaction_id,
100 int64 object_store_id, 99 int64 object_store_id,
101 int64 index_id, 100 int64 index_id,
102 const base::string16& name, 101 const base::string16& name,
103 const IndexedDBKeyPath& key_path, 102 const IndexedDBKeyPath& key_path,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; 290 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
292 PendingDeleteCallList pending_delete_calls_; 291 PendingDeleteCallList pending_delete_calls_;
293 292
294 typedef list_set<IndexedDBConnection*> ConnectionSet; 293 typedef list_set<IndexedDBConnection*> ConnectionSet;
295 ConnectionSet connections_; 294 ConnectionSet connections_;
296 }; 295 };
297 296
298 } // namespace content 297 } // namespace content
299 298
300 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 299 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698