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

Side by Side Diff: third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.h

Issue 2596443005: Replace DOMWindowProperty in Navigator supplements with ContextClient (Closed)
Patch Set: Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NavigatorInstalledApp_h 5 #ifndef NavigatorInstalledApp_h
6 #define NavigatorInstalledApp_h 6 #define NavigatorInstalledApp_h
7 7
8 #include "core/frame/DOMWindowProperty.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Document; 15 class Document;
16 class Navigator; 16 class Navigator;
17 class ScriptPromise; 17 class ScriptPromise;
18 class ScriptState; 18 class ScriptState;
19 class InstalledAppController; 19 class InstalledAppController;
20 20
21 class NavigatorInstalledApp final 21 class NavigatorInstalledApp final
22 : public GarbageCollected<NavigatorInstalledApp>, 22 : public GarbageCollected<NavigatorInstalledApp>,
23 public Supplement<Navigator>, 23 public Supplement<Navigator>,
24 public DOMWindowProperty { 24 public ContextClient {
25 USING_GARBAGE_COLLECTED_MIXIN(NavigatorInstalledApp); 25 USING_GARBAGE_COLLECTED_MIXIN(NavigatorInstalledApp);
26 26
27 public: 27 public:
28 static NavigatorInstalledApp* from(Document&); 28 static NavigatorInstalledApp* from(Document&);
29 static NavigatorInstalledApp& from(Navigator&); 29 static NavigatorInstalledApp& from(Navigator&);
30 30
31 static ScriptPromise getInstalledRelatedApps(ScriptState*, Navigator&); 31 static ScriptPromise getInstalledRelatedApps(ScriptState*, Navigator&);
32 ScriptPromise getInstalledRelatedApps(ScriptState*); 32 ScriptPromise getInstalledRelatedApps(ScriptState*);
33 33
34 InstalledAppController* controller(); 34 InstalledAppController* controller();
35 35
36 DECLARE_VIRTUAL_TRACE(); 36 DECLARE_VIRTUAL_TRACE();
37 37
38 private: 38 private:
39 explicit NavigatorInstalledApp(LocalFrame*); 39 explicit NavigatorInstalledApp(LocalFrame*);
40 static const char* supplementName(); 40 static const char* supplementName();
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // NavigatorInstalledApp_h 45 #endif // NavigatorInstalledApp_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698