diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 19:24:04 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 19:24:04 +0000 |
commit | 2b0ec8bb8b1d5e113ad072b27c3f157d985c6b21 (patch) | |
tree | 7fd39372550d1bbb60dba7483151344a06c3ca60 /webkit/database/database_connections.h | |
parent | d84ac11ef8abf2366f8544fe76db3cb0e645e177 (diff) | |
download | chromium_src-2b0ec8bb8b1d5e113ad072b27c3f157d985c6b21.zip chromium_src-2b0ec8bb8b1d5e113ad072b27c3f157d985c6b21.tar.gz chromium_src-2b0ec8bb8b1d5e113ad072b27c3f157d985c6b21.tar.bz2 |
Ask renderers to immediately close all DB handles to a database file
when the file needs to be deleted.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/594002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/database_connections.h')
-rw-r--r-- | webkit/database/database_connections.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/database/database_connections.h b/webkit/database/database_connections.h index 02941c8..433bb3f 100644 --- a/webkit/database/database_connections.h +++ b/webkit/database/database_connections.h @@ -5,9 +5,10 @@ #ifndef WEBKIT_DATABASE_DATABASE_CONNECTIONS_H_ #define WEBKIT_DATABASE_DATABASE_CONNECTIONS_H_ -#include "base/string16.h" - #include <map> +#include <vector> + +#include "base/string16.h" namespace webkit_database { @@ -25,7 +26,9 @@ class DatabaseConnections { void RemoveConnection(const string16& origin_identifier, const string16& database_name); void RemoveAllConnections(); - void RemoveConnections(const DatabaseConnections& connections); + void RemoveConnections( + const DatabaseConnections& connections, + std::vector<std::pair<string16, string16> >* closed_dbs); private: typedef std::map<string16, int> DBConnections; |