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

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

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: using namespace WebCore Created 6 years, 8 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/DatabaseClient.h ('k') | Source/modules/webmidi/MIDIController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseClient.cpp
diff --git a/Source/modules/webdatabase/DatabaseClient.cpp b/Source/modules/webdatabase/DatabaseClient.cpp
index 2ab844e3b8b9ce24b53400a474639f45ca7358b6..be3434855f6bc5a97e760967b72da9325cd2c565 100644
--- a/Source/modules/webdatabase/DatabaseClient.cpp
+++ b/Source/modules/webdatabase/DatabaseClient.cpp
@@ -46,10 +46,10 @@ DatabaseClient::DatabaseClient()
DatabaseClient* DatabaseClient::from(ExecutionContext* context)
{
if (context->isDocument()) {
- return static_cast<DatabaseClient*>(Supplement<Page>::from(toDocument(context)->page(), supplementName()));
+ return static_cast<DatabaseClient*>(WillBeHeapSupplement<Page>::from(toDocument(context)->page(), supplementName()));
}
ASSERT(context->isWorkerGlobalScope());
- return static_cast<DatabaseClient*>(Supplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName()));
+ return static_cast<DatabaseClient*>(WillBeHeapSupplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName()));
}
const char* DatabaseClient::supplementName()
@@ -71,14 +71,14 @@ void DatabaseClient::createInspectorAgentFor(Page* page)
page->inspectorController().registerModuleAgent(inspectorAgent.release());
}
-void provideDatabaseClientTo(Page& page, PassOwnPtr<DatabaseClient> client)
+void provideDatabaseClientTo(Page& page, PassOwnPtrWillBeRawPtr<DatabaseClient> client)
{
DatabaseClient* clientPtr = client.get();
page.provideSupplement(DatabaseClient::supplementName(), client);
clientPtr->createInspectorAgentFor(&page);
}
-void provideDatabaseClientToWorker(WorkerClients* workerClients, PassOwnPtr<DatabaseClient> client)
+void provideDatabaseClientToWorker(WorkerClients* workerClients, PassOwnPtrWillBeRawPtr<DatabaseClient> client)
{
workerClients->provideSupplement(DatabaseClient::supplementName(), client);
}
« no previous file with comments | « Source/modules/webdatabase/DatabaseClient.h ('k') | Source/modules/webmidi/MIDIController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698