Chromium Code Reviews| 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..2dcb90df476819f359081d2695706ec42295f6d2 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/installedapp/InstalledAppController.h |
| @@ -0,0 +1,44 @@ |
| +// 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/WebInstalledApp.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); |
| + |
|
dcheng
2016/03/01 20:03:03
Nit: no newline before public: (here and elsewhere
Daniel Nishi
2016/03/01 20:46:20
Done.
|
| +public: |
| + virtual ~InstalledAppController(); |
| + |
| + void getInstalledApps(const WebSecurityOrigin&, WebPassOwnPtr<AppInstalledCallbacks>); |
| + |
| + static void provideTo(LocalFrame&, WebInstalledApp*); |
| + static InstalledAppController* from(LocalFrame&); |
| + static const char* supplementName(); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + InstalledAppController(LocalFrame&, WebInstalledApp*); |
| + |
| + // Inherited from LocalFrameLifecycleObserver. |
| + void willDetachFrameHost() override; |
| + |
| + WebInstalledApp* m_client; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // InstalledAppController_h |