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

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

Issue 93873017: IndexedDBFactory now ForceCloses databases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed memory leak 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
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();
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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698