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