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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h

Issue 2558643004: Remove ContextLifecycleObserver from PresentationConnectionList (Closed)
Patch Set: temp 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
index 44a37c0e7100c05392a8f4cccc3b9c7f5d4f6dc0..7d8f8d78e5fb92b0e9abc1a8ae4c3a5384d9b1be 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
@@ -5,7 +5,6 @@
#ifndef PresentationConnectionList_h
#define PresentationConnectionList_h
-#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
#include "modules/ModulesExport.h"
#include "modules/presentation/PresentationConnection.h"
@@ -18,9 +17,7 @@ namespace blink {
// from which represents set of presentation connections in the set of
// presentation controllers.
class MODULES_EXPORT PresentationConnectionList final
- : public EventTargetWithInlineData,
- public ContextLifecycleObserver {
- USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList);
+ : public EventTargetWithInlineData {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -29,7 +26,9 @@ class MODULES_EXPORT PresentationConnectionList final
// EventTarget implementation.
const AtomicString& interfaceName() const override;
- ExecutionContext* getExecutionContext() const override;
+ ExecutionContext* getExecutionContext() const override {
+ return m_executionContext;
+ }
// PresentationConnectionList.idl implementation.
const HeapVector<Member<PresentationConnection>>& connections() const;
@@ -50,6 +49,7 @@ class MODULES_EXPORT PresentationConnectionList final
friend class PresentationReceiverTest;
HeapVector<Member<PresentationConnection>> m_connections;
+ Member<ExecutionContext> m_executionContext;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698