OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NavigatorInstalledApp_h |
| 6 #define NavigatorInstalledApp_h |
| 7 |
| 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/text/WTFString.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class Document; |
| 16 class Navigator; |
| 17 class ScriptPromise; |
| 18 class ScriptState; |
| 19 class InstalledAppController; |
| 20 |
| 21 class NavigatorInstalledApp final : public GarbageCollectedFinalized<NavigatorIn
stalledApp>, public HeapSupplement<Navigator>, public DOMWindowProperty { |
| 22 USING_GARBAGE_COLLECTED_MIXIN(NavigatorInstalledApp); |
| 23 public: |
| 24 static NavigatorInstalledApp* from(Document&); |
| 25 static NavigatorInstalledApp& from(Navigator&); |
| 26 |
| 27 static ScriptPromise getInstalledRelatedApps(ScriptState*, Navigator&); |
| 28 ScriptPromise getInstalledRelatedApps(ScriptState*); |
| 29 |
| 30 InstalledAppController* controller(); |
| 31 |
| 32 DECLARE_VIRTUAL_TRACE(); |
| 33 |
| 34 private: |
| 35 explicit NavigatorInstalledApp(LocalFrame*); |
| 36 static const char* supplementName(); |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // NavigatorInstalledApp_h |
OLD | NEW |