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

Unified Diff: third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h

Issue 2244913002: Remove content::NotificationPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions_typemaps
Patch Set: Rebased. Created 4 years, 4 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: third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h
diff --git a/third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h b/third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h
deleted file mode 100644
index fda8a9b50909a2b6e44d2aa914b1aa8560e7bafb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h
+++ /dev/null
@@ -1,36 +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 NotificationPermissionClient_h
-#define NotificationPermissionClient_h
-
-#include "bindings/core/v8/ScriptPromise.h"
-#include "modules/ModulesExport.h"
-#include "platform/Supplementable.h"
-
-namespace blink {
-
-class ExecutionContext;
-class LocalFrame;
-class NotificationPermissionCallback;
-class ScriptState;
-
-class NotificationPermissionClient : public Supplement<LocalFrame> {
-public:
- virtual ~NotificationPermissionClient() { }
-
- // Requests user permission to show platform notifications from the origin of the
- // current frame. The provided callback will be ran when the user has made a decision.
- virtual ScriptPromise requestPermission(ScriptState*, NotificationPermissionCallback*) = 0;
-
- // Supplement requirements.
- static const char* supplementName();
- static NotificationPermissionClient* from(ExecutionContext*);
-};
-
-MODULES_EXPORT void provideNotificationPermissionClientTo(LocalFrame&, NotificationPermissionClient*);
-
-} // namespace blink
-
-#endif // NotificationPermissionClient_h

Powered by Google App Engine
This is Rietveld 408576698