Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / notifications / NotificationController.cpp
index ca65545..47abc46 100644 (file)
@@ -31,7 +31,7 @@
 
 namespace WebCore {
 
-NotificationController::NotificationController(NotificationClient* client)
+NotificationController::NotificationController(PassOwnPtr<NotificationClient> client)
     : m_client(client)
 {
 }
@@ -40,14 +40,14 @@ NotificationController::~NotificationController()
 {
 }
 
-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;
 }
@@ -57,9 +57,9 @@ const char* NotificationController::supplementName()
     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