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

Unified Diff: Source/modules/webdatabase/InspectorDatabaseAgent.cpp

Issue 205853002: Oilpan: Prepare to move InspectorDatabaseResource to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apply comments 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
Index: Source/modules/webdatabase/InspectorDatabaseAgent.cpp
diff --git a/Source/modules/webdatabase/InspectorDatabaseAgent.cpp b/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
index cd11c123cfd13ae1fe4cb0ad222fde78ca841eea..ade61ff32289acd9b6bfa18bd7a9470f456234be 100644
--- a/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
+++ b/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
@@ -198,7 +198,7 @@ void InspectorDatabaseAgent::didOpenDatabase(PassRefPtrWillBeRawPtr<Database> da
return;
}
- RefPtr<InspectorDatabaseResource> resource = InspectorDatabaseResource::create(database, domain, name, version);
+ RefPtrWillBeRawPtr<InspectorDatabaseResource> resource = InspectorDatabaseResource::create(database, domain, name, version);
m_resources.set(resource->id(), resource);
// Resources are only bound while visible.
if (m_frontend && m_enabled)
@@ -245,8 +245,8 @@ void InspectorDatabaseAgent::enable(ErrorString*)
m_enabled = true;
m_state->setBoolean(DatabaseAgentState::databaseAgentEnabled, m_enabled);
- DatabaseResourcesMap::iterator databasesEnd = m_resources.end();
- for (DatabaseResourcesMap::iterator it = m_resources.begin(); it != databasesEnd; ++it)
+ DatabaseResourcesHeapMap::iterator databasesEnd = m_resources.end();
+ for (DatabaseResourcesHeapMap::iterator it = m_resources.begin(); it != databasesEnd; ++it)
it->value->bind(m_frontend);
}
@@ -304,7 +304,7 @@ void InspectorDatabaseAgent::executeSQL(ErrorString*, const String& databaseId,
InspectorDatabaseResource* InspectorDatabaseAgent::findByFileName(const String& fileName)
{
- for (DatabaseResourcesMap::iterator it = m_resources.begin(); it != m_resources.end(); ++it) {
+ for (DatabaseResourcesHeapMap::iterator it = m_resources.begin(); it != m_resources.end(); ++it) {
if (it->value->database()->fileName() == fileName)
return it->value.get();
}
@@ -313,7 +313,7 @@ InspectorDatabaseResource* InspectorDatabaseAgent::findByFileName(const String&
Database* InspectorDatabaseAgent::databaseForId(const String& databaseId)
{
- DatabaseResourcesMap::iterator it = m_resources.find(databaseId);
+ DatabaseResourcesHeapMap::iterator it = m_resources.find(databaseId);
if (it == m_resources.end())
return 0;
return it->value->database();
« no previous file with comments | « Source/modules/webdatabase/InspectorDatabaseAgent.h ('k') | Source/modules/webdatabase/InspectorDatabaseResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698