| Index: third_party/WebKit/Source/modules/nfc/NFC.h
|
| diff --git a/third_party/WebKit/Source/modules/nfc/NFC.h b/third_party/WebKit/Source/modules/nfc/NFC.h
|
| index 413cb6f6680b36ee3c67940de47c4705bff6018d..8e8764ddef03a1eb3800979fb89fee5b52b9a460 100644
|
| --- a/third_party/WebKit/Source/modules/nfc/NFC.h
|
| +++ b/third_party/WebKit/Source/modules/nfc/NFC.h
|
| @@ -7,31 +7,37 @@
|
|
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| -#include "core/dom/ActiveDOMObject.h"
|
| -#include "core/frame/DOMWindowProperty.h"
|
| -#include "platform/heap/Handle.h"
|
| +#include "core/frame/LocalFrameLifecycleObserver.h"
|
| +#include "core/page/PageLifecycleObserver.h"
|
|
|
| namespace blink {
|
|
|
| class NFC final
|
| : public GarbageCollectedFinalized<NFC>
|
| , public ScriptWrappable
|
| - , public ActiveDOMObject
|
| - , public DOMWindowProperty {
|
| + , public LocalFrameLifecycleObserver
|
| + , public PageLifecycleObserver {
|
| DEFINE_WRAPPERTYPEINFO();
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NFC);
|
|
|
| public:
|
| - static NFC* create(ExecutionContext*, LocalFrame*);
|
| + static NFC* create(LocalFrame*);
|
| ~NFC() override;
|
|
|
| // Get an adapter object providing NFC functionality.
|
| ScriptPromise requestAdapter(ScriptState*);
|
|
|
| + // Implementation of LocalFrameLifecycleObserver.
|
| + void willDetachFrameHost() override;
|
| +
|
| + // Implementation of PageLifecycleObserver
|
| + void pageVisibilityChanged() override;
|
| +
|
| + // Interface required by garbage collection.
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - NFC(ExecutionContext*, LocalFrame*);
|
| + NFC(LocalFrame*);
|
| };
|
|
|
| } // namespace blink
|
|
|