| OLD | NEW |
| 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 ScriptValue; |
| 18 |
| 17 class BroadcastChannel final : public EventTargetWithInlineData, | 19 class BroadcastChannel final : public EventTargetWithInlineData, |
| 18 public ActiveScriptWrappable<BroadcastChannel>, | 20 public ActiveScriptWrappable<BroadcastChannel>, |
| 19 public ContextLifecycleObserver, | 21 public ContextLifecycleObserver, |
| 20 public mojom::blink::BroadcastChannelClient { | 22 public mojom::blink::BroadcastChannelClient { |
| 21 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
| 22 USING_GARBAGE_COLLECTED_MIXIN(BroadcastChannel); | 24 USING_GARBAGE_COLLECTED_MIXIN(BroadcastChannel); |
| 23 USING_PRE_FINALIZER(BroadcastChannel, dispose); | 25 USING_PRE_FINALIZER(BroadcastChannel, dispose); |
| 24 WTF_MAKE_NONCOPYABLE(BroadcastChannel); | 26 WTF_MAKE_NONCOPYABLE(BroadcastChannel); |
| 25 | 27 |
| 26 public: | 28 public: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 RefPtr<SecurityOrigin> m_origin; | 64 RefPtr<SecurityOrigin> m_origin; |
| 63 String m_name; | 65 String m_name; |
| 64 | 66 |
| 65 mojo::AssociatedBinding<mojom::blink::BroadcastChannelClient> m_binding; | 67 mojo::AssociatedBinding<mojom::blink::BroadcastChannelClient> m_binding; |
| 66 mojom::blink::BroadcastChannelClientAssociatedPtr m_remoteClient; | 68 mojom::blink::BroadcastChannelClientAssociatedPtr m_remoteClient; |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace blink | 71 } // namespace blink |
| 70 | 72 |
| 71 #endif // BroadcastChannel_h | 73 #endif // BroadcastChannel_h |
| OLD | NEW |