namespace WebCore {
-NotificationController::NotificationController(NotificationClient* client)
+NotificationController::NotificationController(PassOwnPtr<NotificationClient> client)
: m_client(client)
{
}
{
}
-PassOwnPtr<NotificationController> NotificationController::create(NotificationClient* client)
+PassOwnPtr<NotificationController> NotificationController::create(PassOwnPtr<NotificationClient> client)
{
return adoptPtr(new NotificationController(client));
}
-NotificationClient* NotificationController::clientFrom(Page* page)
+NotificationClient* NotificationController::clientFrom(LocalFrame* frame)
{
- if (NotificationController* controller = NotificationController::from(page))
+ if (NotificationController* controller = NotificationController::from(frame))
return controller->client();
return 0;
}
return "NotificationController";
}
-void provideNotification(Page& page, NotificationClient* client)
+void provideNotification(LocalFrame& frame, PassOwnPtr<NotificationClient> client)
{
- NotificationController::provideTo(page, NotificationController::supplementName(), NotificationController::create(client));
+ NotificationController::provideTo(frame, NotificationController::supplementName(), NotificationController::create(client));
}
} // namespace WebCore