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

Unified Diff: Source/modules/webdatabase/DatabaseManager.h

Issue 212133002: Remove manual ref()-deref() in DatabaseContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webdatabase/DatabaseContext.cpp ('k') | Source/modules/webdatabase/DatabaseManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseManager.h
diff --git a/Source/modules/webdatabase/DatabaseManager.h b/Source/modules/webdatabase/DatabaseManager.h
index 7d290ac5b14c5d1c621f76555435eea8ec5656f4..861d21987fa5d1568f17213cc59916828fd843ad 100644
--- a/Source/modules/webdatabase/DatabaseManager.h
+++ b/Source/modules/webdatabase/DatabaseManager.h
@@ -81,7 +81,7 @@ public:
private:
DatabaseManager();
- ~DatabaseManager() { }
+ ~DatabaseManager();
// This gets a DatabaseContext for the specified ExecutionContext.
// If one doesn't already exist, it will create a new one.
@@ -99,7 +99,7 @@ private:
AbstractDatabaseServer* m_server;
// Access to the following fields require locking m_contextMapLock:
- typedef HashMap<ExecutionContext*, DatabaseContext*> ContextMap;
+ typedef HashMap<ExecutionContext*, RefPtr<DatabaseContext> > ContextMap;
ContextMap m_contextMap;
#if !ASSERT_DISABLED
int m_databaseContextRegisteredCount;
« no previous file with comments | « Source/modules/webdatabase/DatabaseContext.cpp ('k') | Source/modules/webdatabase/DatabaseManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698