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

Unified Diff: content/child/web_database_observer_impl.cc

Issue 50883004: Decouple lifetime of database thread and WebDatabase, chromium side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/web_database_observer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_database_observer_impl.cc
diff --git a/content/child/web_database_observer_impl.cc b/content/child/web_database_observer_impl.cc
index 8b6d157acce29e1a30e3e6fcc96043eefbe981c6..fb5ce1395277c82928238dc277d4d54702dbd0ff 100644
--- a/content/child/web_database_observer_impl.cc
+++ b/content/child/web_database_observer_impl.cc
@@ -13,6 +13,7 @@
#include "third_party/sqlite/sqlite3.h"
using WebKit::WebDatabase;
+using WebKit::WebString;
namespace content {
namespace {
@@ -89,6 +90,14 @@ void WebDatabaseObserverImpl::databaseModified(
database.securityOrigin().databaseIdentifier().utf8(), database.name()));
}
+void WebDatabaseObserverImpl::databaseClosed(const WebString& origin_identifier,
+ const WebString& database_name) {
+ sender_->Send(new DatabaseHostMsg_Closed(
+ origin_identifier.utf8(), database_name));
+ open_connections_->RemoveOpenConnection(origin_identifier.utf8(),
+ database_name);
+}
+
void WebDatabaseObserverImpl::databaseClosed(
const WebDatabase& database) {
std::string origin_identifier =
« no previous file with comments | « content/child/web_database_observer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698