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

Unified Diff: content/shell/renderer/test_runner/notification_presenter.h

Issue 395883002: Support layout testing Web Notifications from Document and Worker contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: content/shell/renderer/test_runner/notification_presenter.h
diff --git a/content/shell/renderer/test_runner/notification_presenter.h b/content/shell/renderer/test_runner/notification_presenter.h
index 083223ade66fc3edb1710171386b3b8e2f652244..ac43ea50c796b90fa2e35bb1207b955a294b3916 100644
--- a/content/shell/renderer/test_runner/notification_presenter.h
+++ b/content/shell/renderer/test_runner/notification_presenter.h
@@ -22,9 +22,6 @@ class NotificationPresenter : public blink::WebNotificationPresenter {
NotificationPresenter();
virtual ~NotificationPresenter();
- // Called by the TestRunner to simulate a user granting permission.
- void GrantPermission(const std::string& origin, bool permission_granted);
-
// Called by the TestRunner to simulate a user clicking on a notification.
bool SimulateClick(const std::string& title);
@@ -46,10 +43,6 @@ class NotificationPresenter : public blink::WebNotificationPresenter {
private:
WebTestDelegate* delegate_;
- // Map of known origins and whether they are allowed to show notifications.
- typedef std::map<std::string, bool> KnownOriginMap;
- KnownOriginMap known_origins_;
-
// Map of currently active notifications.
typedef std::map<std::string, blink::WebNotification> ActiveNotificationMap;
ActiveNotificationMap active_notifications_;

Powered by Google App Engine
This is Rietveld 408576698