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

Unified Diff: webkit/tools/test_shell/notification_presenter.h

Issue 15028002: Delete test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dummy test_shell build target. Created 7 years, 7 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: webkit/tools/test_shell/notification_presenter.h
diff --git a/webkit/tools/test_shell/notification_presenter.h b/webkit/tools/test_shell/notification_presenter.h
deleted file mode 100644
index 85ddef56f9192e94a0c47bb1696f03adc7581ebd..0000000000000000000000000000000000000000
--- a/webkit/tools/test_shell/notification_presenter.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 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 WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_
-#define WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_
-
-#include <map>
-#include <set>
-#include <string>
-
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
-#include "webkit/tools/test_shell/test_shell.h"
-
-// A class that implements NotificationPresenter for the test shell.
-class TestNotificationPresenter : public WebKit::WebNotificationPresenter {
- public:
- explicit TestNotificationPresenter(TestShell* shell);
- virtual ~TestNotificationPresenter();
-
- void Reset();
-
- // Called by the testRunner to simulate a user granting
- // permission.
- void grantPermission(const std::string& origin);
-
- // WebKit::WebNotificationPresenter interface
- virtual bool show(const WebKit::WebNotification&);
- virtual void cancel(const WebKit::WebNotification&);
- virtual void objectDestroyed(const WebKit::WebNotification&);
- virtual Permission checkPermission(const WebKit::WebSecurityOrigin& origin);
- virtual void requestPermission(const WebKit::WebSecurityOrigin& origin,
- WebKit::WebNotificationPermissionCallback* callback);
-
- private:
- // List of allowed origins.
- std::set<std::string> allowed_origins_;
-
- // Map of active replacement IDs to the titles of those notifications
- std::map<std::string, std::string> replacements_;
-};
-
-#endif // WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_

Powered by Google App Engine
This is Rietveld 408576698