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

Side by Side Diff: third_party/WebKit/Source/modules/nfc/NFC.h

Issue 2894373002: [DeviceService] Move //device/nfc to be part of the internal impl of Device Service (Closed)
Patch Set: Modify code comment Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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/modules/v8/StringOrArrayBufferOrNFCMessage.h" 9 #include "bindings/modules/v8/StringOrArrayBufferOrNFCMessage.h"
10 #include "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
11 #include "core/page/PageVisibilityObserver.h" 11 #include "core/page/PageVisibilityObserver.h"
12 #include "device/nfc/nfc.mojom-blink.h"
13 #include "modules/nfc/MessageCallback.h" 12 #include "modules/nfc/MessageCallback.h"
14 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
15 #include "platform/bindings/ScriptWrappable.h" 14 #include "platform/bindings/ScriptWrappable.h"
16 #include "platform/wtf/HashMap.h" 15 #include "platform/wtf/HashMap.h"
16 #include "services/device/public/interfaces/nfc.mojom-blink.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class MessageCallback; 20 class MessageCallback;
21 class NFCPushOptions; 21 class NFCPushOptions;
22 using NFCPushMessage = StringOrArrayBufferOrNFCMessage; 22 using NFCPushMessage = StringOrArrayBufferOrNFCMessage;
23 class NFCWatchOptions; 23 class NFCWatchOptions;
24 24
25 class NFC final : public GarbageCollectedFinalized<NFC>, 25 class NFC final : public GarbageCollectedFinalized<NFC>,
26 public ScriptWrappable, 26 public ScriptWrappable,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 device::nfc::mojom::blink::NFCPtr nfc_; 90 device::nfc::mojom::blink::NFCPtr nfc_;
91 mojo::Binding<device::nfc::mojom::blink::NFCClient> client_; 91 mojo::Binding<device::nfc::mojom::blink::NFCClient> client_;
92 HeapHashSet<Member<ScriptPromiseResolver>> requests_; 92 HeapHashSet<Member<ScriptPromiseResolver>> requests_;
93 using WatchCallbacksMap = HeapHashMap<uint32_t, Member<MessageCallback>>; 93 using WatchCallbacksMap = HeapHashMap<uint32_t, Member<MessageCallback>>;
94 WatchCallbacksMap callbacks_; 94 WatchCallbacksMap callbacks_;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // NFC_h 99 #endif // NFC_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/DEPS ('k') | third_party/WebKit/Source/modules/nfc/NFCError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698