OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 NFC_h | 5 #ifndef NFC_h |
6 #define NFC_h | 6 #define NFC_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "bindings/modules/v8/StringOrArrayBufferOrNFCMessage.h" | 10 #include "bindings/modules/v8/StringOrArrayBufferOrNFCMessage.h" |
11 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
12 #include "core/page/PageVisibilityObserver.h" | 12 #include "core/page/PageVisibilityObserver.h" |
13 #include "device/nfc/nfc.mojom-blink.h" | 13 #include "device/nfc/nfc.mojom-blink.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class MessageCallback; | 18 class MessageCallback; |
19 class NFCError; | 19 class NFCError; |
20 class NFCPushOptions; | 20 class NFCPushOptions; |
21 using NFCPushMessage = StringOrArrayBufferOrNFCMessage; | 21 using NFCPushMessage = StringOrArrayBufferOrNFCMessage; |
22 class NFCWatchOptions; | 22 class NFCWatchOptions; |
23 class ServiceRegistry; | |
24 | 23 |
25 class NFC final | 24 class NFC final |
26 : public GarbageCollectedFinalized<NFC> | 25 : public GarbageCollectedFinalized<NFC> |
27 , public ScriptWrappable | 26 , public ScriptWrappable |
28 , public PageVisibilityObserver | 27 , public PageVisibilityObserver |
29 , public ContextLifecycleObserver | 28 , public ContextLifecycleObserver |
30 , public device::nfc::blink::NFCClient { | 29 , public device::nfc::blink::NFCClient { |
31 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
32 USING_GARBAGE_COLLECTED_MIXIN(NFC); | 31 USING_GARBAGE_COLLECTED_MIXIN(NFC); |
33 USING_PRE_FINALIZER(NFC, dispose); | 32 USING_PRE_FINALIZER(NFC, dispose); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 private: | 72 private: |
74 explicit NFC(LocalFrame*); | 73 explicit NFC(LocalFrame*); |
75 device::nfc::blink::NFCPtr m_nfc; | 74 device::nfc::blink::NFCPtr m_nfc; |
76 mojo::Binding<device::nfc::blink::NFCClient> m_client; | 75 mojo::Binding<device::nfc::blink::NFCClient> m_client; |
77 HeapHashSet<Member<ScriptPromiseResolver>> m_requests; | 76 HeapHashSet<Member<ScriptPromiseResolver>> m_requests; |
78 }; | 77 }; |
79 | 78 |
80 } // namespace blink | 79 } // namespace blink |
81 | 80 |
82 #endif // NFC_h | 81 #endif // NFC_h |
OLD | NEW |