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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
(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/WebInstalledAppClient.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 public:
22 virtual ~InstalledAppController();
23
24 void getInstalledApps(const WebSecurityOrigin&, WebPassOwnPtr<AppInstalledCa llbacks>);
25
26 static void provideTo(LocalFrame&, WebInstalledAppClient*);
27 static InstalledAppController* from(LocalFrame&);
28 static const char* supplementName();
29
30 DECLARE_VIRTUAL_TRACE();
31
32 private:
33 InstalledAppController(LocalFrame&, WebInstalledAppClient*);
34
35 // Inherited from LocalFrameLifecycleObserver.
36 void willDetachFrameHost() override;
37
38 WebInstalledAppClient* m_client;
39 };
40
41 } // namespace blink
42
43 #endif // InstalledAppController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698