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

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

Issue 740543003: Remove the old Web Notification code-path (Chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unittest references Created 6 years, 1 month 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
deleted file mode 100644
index 319565a92aae98e303cdfa38b635e4ce0a16acd9..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/notification_presenter.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_NOTIFICATION_PRESENTER_H_
-#define CONTENT_SHELL_RENDERER_TEST_RUNNER_NOTIFICATION_PRESENTER_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "third_party/WebKit/public/web/WebNotification.h"
-#include "third_party/WebKit/public/web/WebNotificationPresenter.h"
-
-namespace content {
-
-class WebTestDelegate;
-
-// A class that implements WebNotificationPresenter for the TestRunner library.
-class NotificationPresenter : public blink::WebNotificationPresenter {
- public:
- NotificationPresenter();
- virtual ~NotificationPresenter();
-
- // Called by the TestRunner to simulate a user clicking on a notification.
- bool SimulateClick(const std::string& title);
-
- // Called by the TestRunner to reset the presenter to an default state.
- void Reset();
-
- void set_delegate(WebTestDelegate* delegate) { delegate_ = delegate; }
-
- // blink::WebNotificationPresenter interface
- virtual bool show(const blink::WebNotification& notification);
- virtual void cancel(const blink::WebNotification& notification);
- virtual void objectDestroyed(const blink::WebNotification& notification);
- virtual Permission checkPermission(
- const blink::WebSecurityOrigin& security_origin);
-
- private:
- WebTestDelegate* delegate_;
-
- // Map of currently active notifications.
- typedef std::map<std::string, blink::WebNotification> ActiveNotificationMap;
- ActiveNotificationMap active_notifications_;
-
- // Map of replacement identifiers to the titles of those notifications.
- std::map<std::string, std::string> replacements_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationPresenter);
-};
-
-} // namespace content
-
-#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_NOTIFICATION_PRESENTER_H_
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.cc ('k') | content/shell/renderer/test_runner/notification_presenter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698