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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.cc

Issue 639293005: Content Shell: Introduce LayoutTestContentBrowserClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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/browser/layout_test/layout_test_notification_manager.cc
diff --git a/content/shell/browser/shell_notification_manager.cc b/content/shell/browser/layout_test/layout_test_notification_manager.cc
similarity index 62%
rename from content/shell/browser/shell_notification_manager.cc
rename to content/shell/browser/layout_test/layout_test_notification_manager.cc
index 134f8bac11e38e396a26817fbf803c3f70bdceed..99a6a23f7b63180d9a415dbfc2e277765a3b8df8 100644
--- a/content/shell/browser/shell_notification_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/shell/browser/shell_notification_manager.h"
+#include "content/shell/browser/layout_test/layout_test_notification_manager.h"
namespace content {
-ShellNotificationManager::ShellNotificationManager() {}
+LayoutTestNotificationManager::LayoutTestNotificationManager() {}
-ShellNotificationManager::~ShellNotificationManager() {}
+LayoutTestNotificationManager::~LayoutTestNotificationManager() {}
blink::WebNotificationPermission
-ShellNotificationManager::CheckPermission(const GURL& origin) {
+LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
NotificationPermissionMap::iterator iter =
permission_map_.find(origin);
if (iter == permission_map_.end())
@@ -20,19 +20,19 @@ ShellNotificationManager::CheckPermission(const GURL& origin) {
return iter->second;
}
-void ShellNotificationManager::RequestPermission(
+void LayoutTestNotificationManager::RequestPermission(
const GURL& origin,
const base::Callback<void(blink::WebNotificationPermission)>& callback) {
callback.Run(CheckPermission(origin));
}
-void ShellNotificationManager::SetPermission(
+void LayoutTestNotificationManager::SetPermission(
const GURL& origin,
blink::WebNotificationPermission permission) {
permission_map_[origin] = permission;
}
-void ShellNotificationManager::ClearPermissions() {
+void LayoutTestNotificationManager::ClearPermissions() {
permission_map_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698