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

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

Issue 2557033002: Remove ContextLifecycleObserver from NotificationManager (Closed)
Patch Set: Created 4 years 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/NotificationManager.h
diff --git a/third_party/WebKit/Source/modules/notifications/NotificationManager.h b/third_party/WebKit/Source/modules/notifications/NotificationManager.h
index 6b4042c446e8969b0271d79ee9214d2342a7dfc5..37bafc925943dfc316665bf117dee9eeb7dc3674 100644
--- a/third_party/WebKit/Source/modules/notifications/NotificationManager.h
+++ b/third_party/WebKit/Source/modules/notifications/NotificationManager.h
@@ -5,7 +5,6 @@
#ifndef NotificationManager_h
#define NotificationManager_h
-#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/ExecutionContext.h"
#include "public/platform/modules/notifications/notification_service.mojom-blink.h"
#include "public/platform/modules/permissions/permission.mojom-blink.h"
@@ -25,7 +24,6 @@ class ScriptState;
// TODO(peter): Make the NotificationManager responsible for resource loading.
class NotificationManager final
: public GarbageCollectedFinalized<NotificationManager>,
- public ContextLifecycleObserver,
public Supplement<ExecutionContext> {
USING_GARBAGE_COLLECTED_MIXIN(NotificationManager);
WTF_MAKE_NONCOPYABLE(NotificationManager);
@@ -38,19 +36,16 @@ class NotificationManager final
// Returns the notification permission status of the current origin. This
// method is synchronous to support the Notification.permission getter.
- mojom::blink::PermissionStatus permissionStatus();
+ mojom::blink::PermissionStatus permissionStatus(ExecutionContext*);
Peter Beverloo 2016/12/07 13:25:36 For future reference - All potential methods that
haraken 2016/12/07 15:27:13 It should be safe. The fact that NotificationManag
ScriptPromise requestPermission(
ScriptState*,
NotificationPermissionCallback* deprecatedCallback);
- // ContextLifecycleObserver interface.
- void contextDestroyed() override;
-
DECLARE_VIRTUAL_TRACE();
private:
- explicit NotificationManager(ExecutionContext*);
+ NotificationManager();
void onPermissionRequestComplete(ScriptPromiseResolver*,
NotificationPermissionCallback*,

Powered by Google App Engine
This is Rietveld 408576698