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 InstalledAppController_h | |
6 #define InstalledAppController_h | |
7 | |
8 #include "core/frame/LocalFrameLifecycleObserver.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include "platform/Supplementable.h" | |
11 #include "public/platform/modules/installedapp/WebInstalledApp.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class WebSecurityOrigin; | |
16 | |
17 class MODULES_EXPORT InstalledAppController final | |
18 : public NoBaseWillBeGarbageCollectedFinalized<InstalledAppController>, publ ic WillBeHeapSupplement<LocalFrame>, public LocalFrameLifecycleObserver { | |
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InstalledAppController); | |
20 WTF_MAKE_NONCOPYABLE(InstalledAppController); | |
21 | |
dcheng
2016/03/01 20:03:03
Nit: no newline before public: (here and elsewhere
Daniel Nishi
2016/03/01 20:46:20
Done.
| |
22 public: | |
23 virtual ~InstalledAppController(); | |
24 | |
25 void getInstalledApps(const WebSecurityOrigin&, WebPassOwnPtr<AppInstalledCa llbacks>); | |
26 | |
27 static void provideTo(LocalFrame&, WebInstalledApp*); | |
28 static InstalledAppController* from(LocalFrame&); | |
29 static const char* supplementName(); | |
30 | |
31 DECLARE_VIRTUAL_TRACE(); | |
32 | |
33 private: | |
34 InstalledAppController(LocalFrame&, WebInstalledApp*); | |
35 | |
36 // Inherited from LocalFrameLifecycleObserver. | |
37 void willDetachFrameHost() override; | |
38 | |
39 WebInstalledApp* m_client; | |
40 }; | |
41 | |
42 } // namespace blink | |
43 | |
44 #endif // InstalledAppController_h | |
OLD | NEW |