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

Side by Side Diff: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.h

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BroadcastChannel_h 5 #ifndef BroadcastChannel_h
6 #define BroadcastChannel_h 6 #define BroadcastChannel_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
11 #include "mojo/public/cpp/bindings/associated_binding.h" 11 #include "mojo/public/cpp/bindings/associated_binding.h"
12 #include "platform/weborigin/SecurityOrigin.h" 12 #include "platform/weborigin/SecurityOrigin.h"
13 #include "third_party/WebKit/public/platform/modules/broadcastchannel/broadcast_ channel.mojom-blink.h" 13 #include "third_party/WebKit/public/platform/modules/broadcastchannel/broadcast_ channel.mojom-blink.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class BroadcastChannel final : public EventTargetWithInlineData, 17 class BroadcastChannel final : public EventTargetWithInlineData,
18 public ActiveScriptWrappable, 18 public ActiveScriptWrappable<BroadcastChannel>,
19 public ContextLifecycleObserver, 19 public ContextLifecycleObserver,
20 public mojom::blink::BroadcastChannelClient { 20 public mojom::blink::BroadcastChannelClient {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 USING_GARBAGE_COLLECTED_MIXIN(BroadcastChannel); 22 USING_GARBAGE_COLLECTED_MIXIN(BroadcastChannel);
23 USING_PRE_FINALIZER(BroadcastChannel, dispose); 23 USING_PRE_FINALIZER(BroadcastChannel, dispose);
24 WTF_MAKE_NONCOPYABLE(BroadcastChannel); 24 WTF_MAKE_NONCOPYABLE(BroadcastChannel);
25 25
26 public: 26 public:
27 static BroadcastChannel* create(ExecutionContext*, 27 static BroadcastChannel* create(ExecutionContext*,
28 const String& name, 28 const String& name,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 RefPtr<SecurityOrigin> m_origin; 62 RefPtr<SecurityOrigin> m_origin;
63 String m_name; 63 String m_name;
64 64
65 mojo::AssociatedBinding<mojom::blink::BroadcastChannelClient> m_binding; 65 mojo::AssociatedBinding<mojom::blink::BroadcastChannelClient> m_binding;
66 mojom::blink::BroadcastChannelClientAssociatedPtr m_remoteClient; 66 mojom::blink::BroadcastChannelClientAssociatedPtr m_remoteClient;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // BroadcastChannel_h 71 #endif // BroadcastChannel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698