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

Unified Diff: content/shell/renderer/test_runner/test_runner.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: another rebase 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/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index 3c98c38d64bc50e5409cb3bd4800c10e225d0b57..eaae272a560110e4550a9f14a75084ca6fc4535c 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -15,6 +15,7 @@
#include "content/shell/renderer/test_runner/web_test_runner.h"
#include "v8/include/v8.h"
+class GURL;
class SkBitmap;
namespace blink {
@@ -518,8 +519,12 @@ class TestRunner : public WebTestRunner,
void SetMIDISysexPermission(bool value);
// Grants permission for desktop notifications to an origin
- void GrantWebNotificationPermission(const std::string& origin,
+ void GrantWebNotificationPermission(const GURL& origin,
bool permission_granted);
+
+ // Clears all previously granted Web Notification permissions.
+ void ClearWebNotificationPermissions();
+
// Simulates a click on a desktop notification.
bool SimulateWebNotificationClick(const std::string& value);
« no previous file with comments | « content/shell/renderer/test_runner/notification_presenter.cc ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698