#include "third_party/WebKit/public/web/WebNotification.h"
#include "third_party/WebKit/public/web/WebNotificationPresenter.h"
-namespace WebTestRunner {
-class WebTestDelegate;
-}
-
namespace content {
+class WebTestDelegate;
+
// A class that implements WebNotificationPresenter for the TestRunner library.
class NotificationPresenter : public blink::WebNotificationPresenter {
public:
// Called by the TestRunner to reset the presenter to an default state.
void Reset();
- void set_delegate(WebTestRunner::WebTestDelegate* delegate) {
- delegate_ = delegate;
- }
+ void set_delegate(WebTestDelegate* delegate) { delegate_ = delegate; }
// blink::WebNotificationPresenter interface
virtual bool show(const blink::WebNotification& notification);
blink::WebNotificationPermissionCallback* callback);
private:
- WebTestRunner::WebTestDelegate* delegate_;
+ WebTestDelegate* delegate_;
// Map of known origins and whether they are allowed to show notifications.
typedef std::map<std::string, bool> KnownOriginMap;