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

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

Issue 2622533002: Prefer ContextClient mixin over manual ExecutionContext handling. (Closed)
Patch Set: Created 3 years, 11 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/presentation/PresentationConnectionList.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
index 7d8f8d78e5fb92b0e9abc1a8ae4c3a5384d9b1be..1abe5980d3a181d6d590d7873e62b983cd3a771f 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
@@ -5,11 +5,11 @@
#ifndef PresentationConnectionList_h
#define PresentationConnectionList_h
+#include "core/dom/ExecutionContext.h"
#include "core/events/EventTarget.h"
#include "modules/ModulesExport.h"
#include "modules/presentation/PresentationConnection.h"
#include "platform/heap/Handle.h"
-#include "platform/heap/Heap.h"
namespace blink {
@@ -17,8 +17,10 @@ namespace blink {
// from which represents set of presentation connections in the set of
// presentation controllers.
class MODULES_EXPORT PresentationConnectionList final
- : public EventTargetWithInlineData {
+ : public EventTargetWithInlineData,
+ public ContextClient {
DEFINE_WRAPPERTYPEINFO();
+ USING_GARBAGE_COLLECTED_MIXIN(PresentationConnectionList);
public:
explicit PresentationConnectionList(ExecutionContext*);
@@ -27,7 +29,7 @@ class MODULES_EXPORT PresentationConnectionList final
// EventTarget implementation.
const AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override {
- return m_executionContext;
+ return ContextClient::getExecutionContext();
}
// PresentationConnectionList.idl implementation.
@@ -49,7 +51,6 @@ class MODULES_EXPORT PresentationConnectionList final
friend class PresentationReceiverTest;
HeapVector<Member<PresentationConnection>> m_connections;
- Member<ExecutionContext> m_executionContext;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698