Index: third_party/WebKit/Source/modules/installedapp/InstalledAppController.h |
diff --git a/third_party/WebKit/Source/modules/installedapp/InstalledAppController.h b/third_party/WebKit/Source/modules/installedapp/InstalledAppController.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b9164e4b03384bae564b055f9b88b80f3aadbdb4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/installedapp/InstalledAppController.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef InstalledAppController_h |
+#define InstalledAppController_h |
+ |
+#include "core/frame/LocalFrameLifecycleObserver.h" |
+#include "modules/ModulesExport.h" |
+#include "platform/Supplementable.h" |
+#include "public/platform/modules/installedapp/WebInstalledAppClient.h" |
+ |
+namespace blink { |
+ |
+class WebSecurityOrigin; |
+ |
+class MODULES_EXPORT InstalledAppController final |
+ : public NoBaseWillBeGarbageCollectedFinalized<InstalledAppController>, public WillBeHeapSupplement<LocalFrame>, public LocalFrameLifecycleObserver { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InstalledAppController); |
+ WTF_MAKE_NONCOPYABLE(InstalledAppController); |
+public: |
+ virtual ~InstalledAppController(); |
+ |
+ void getInstalledApps(const WebSecurityOrigin&, WebPassOwnPtr<AppInstalledCallbacks>); |
+ |
+ static void provideTo(LocalFrame&, WebInstalledAppClient*); |
+ static InstalledAppController* from(LocalFrame&); |
+ static const char* supplementName(); |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ InstalledAppController(LocalFrame&, WebInstalledAppClient*); |
+ |
+ // Inherited from LocalFrameLifecycleObserver. |
+ void willDetachFrameHost() override; |
+ |
+ WebInstalledAppClient* m_client; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // InstalledAppController_h |