Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: third_party/WebKit/Source/modules/installedapp/InstalledAppController.h

Issue 1735033004: Bindings and client interface for the IsAppInstalled API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests for real. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698