Index: content/shell/renderer/webkit_test_runner.cc |
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc |
index 9646f051c13f9df76284e8296272d32c6f6699ac..8c90b052c7676a38b38d2f0ebd0afec09e338544 100644 |
--- a/content/shell/renderer/webkit_test_runner.cc |
+++ b/content/shell/renderer/webkit_test_runner.cc |
@@ -410,6 +410,26 @@ void WebKitTestRunner::setDatabaseQuota(int quota) { |
Send(new ShellViewHostMsg_SetDatabaseQuota(routing_id(), quota)); |
} |
+blink::WebNotificationPresenter::Permission |
+WebKitTestRunner::checkWebNotificationPermission(const GURL& origin) { |
+ int permission = blink::WebNotificationPresenter::PermissionNotAllowed; |
+ Send(new ShellViewHostMsg_CheckWebNotificationPermission( |
+ routing_id(), |
+ origin, |
+ &permission)); |
+ return static_cast<blink::WebNotificationPresenter::Permission>(permission); |
+} |
+ |
+void WebKitTestRunner::grantWebNotificationPermission(const GURL& origin, |
+ bool permission_granted) { |
+ Send(new ShellViewHostMsg_GrantWebNotificationPermission( |
+ routing_id(), origin, permission_granted)); |
+} |
+ |
+void WebKitTestRunner::clearWebNotificationPermissions() { |
+ Send(new ShellViewHostMsg_ClearWebNotificationPermissions(routing_id())); |
+} |
+ |
void WebKitTestRunner::setDeviceScaleFactor(float factor) { |
SetDeviceScaleFactor(render_view(), factor); |
} |