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

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: 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 dfd045ce154789c88e3785ce87bb65636ba30938..cc3f18e45ea32b2e00d600789b6d507d065ac3de 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);

Powered by Google App Engine
This is Rietveld 408576698