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

Unified Diff: Source/modules/push_messaging/PushController.cpp

Issue 687933002: Move push client to frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 2 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/push_messaging/PushController.cpp
diff --git a/Source/modules/push_messaging/PushController.cpp b/Source/modules/push_messaging/PushController.cpp
index d6ba8a0c18a55a49017883b0312b690e4fc2e4e8..838e55459976be1191eb0de434250b1a28df49b7 100644
--- a/Source/modules/push_messaging/PushController.cpp
+++ b/Source/modules/push_messaging/PushController.cpp
@@ -20,9 +20,9 @@ PassOwnPtrWillBeRawPtr<PushController> PushController::create(WebPushClient* cli
return adoptPtrWillBeNoop(new PushController(client));
}
-WebPushClient* PushController::clientFrom(Page* page)
+WebPushClient* PushController::clientFrom(LocalFrame* frame)
{
- if (PushController* controller = PushController::from(page))
+ if (PushController* controller = PushController::from(frame))
return controller->client();
return 0;
}
@@ -32,9 +32,9 @@ const char* PushController::supplementName()
return "PushController";
}
-void providePushControllerTo(Page& page, WebPushClient* client)
+void providePushControllerTo(LocalFrame& frame, WebPushClient* client)
{
- PushController::provideTo(page, PushController::supplementName(), PushController::create(client));
+ PushController::provideTo(frame, PushController::supplementName(), PushController::create(client));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698