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

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

Issue 215063005: Oilpan: Prepare to move DatabaseContext to Oilpan heap. (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 861d21987fa5d1568f17213cc59916828fd843ad..f4ee1b794f9596445b1293cbc5560bf33faccd35 100644
--- a/Source/modules/webdatabase/DatabaseManager.h
+++ b/Source/modules/webdatabase/DatabaseManager.h
@@ -99,7 +99,12 @@ private:
AbstractDatabaseServer* m_server;
// Access to the following fields require locking m_contextMapLock:
+#if ENABLE(OILPAN)
+ // We can't use PersistentHeapHashMap because multiple threads update the map.
haraken 2014/03/28 01:03:24 What's the issue of updating a PersistentHeapHashM
tkent 2014/03/28 01:17:25 When the (Persistent)HeapHashMap gets new value an
+ typedef HashMap<ExecutionContext*, OwnPtr<Persistent<DatabaseContext> > > ContextMap;
+#else
typedef HashMap<ExecutionContext*, RefPtr<DatabaseContext> > ContextMap;
+#endif
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