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

Side by Side Diff: third_party/WebKit/Source/modules/plugins/NavigatorPlugins.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 NavigatorPlugins_h 5 #ifndef NavigatorPlugins_h
6 #define NavigatorPlugins_h 6 #define NavigatorPlugins_h
7 7
8 #include "core/frame/DOMWindowProperty.h" 8 #include "core/frame/DOMWindowProperty.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DOMMimeTypeArray; 13 class DOMMimeTypeArray;
14 class DOMPluginArray; 14 class DOMPluginArray;
15 class LocalFrame; 15 class LocalFrame;
16 class Navigator; 16 class Navigator;
17 17
18 class NavigatorPlugins final : public GarbageCollectedFinalized<NavigatorPlugins >, public HeapSupplement<Navigator>, public DOMWindowProperty { 18 class NavigatorPlugins final : public GarbageCollectedFinalized<NavigatorPlugins >, public Supplement<Navigator>, public DOMWindowProperty {
19 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins); 19 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins);
20 public: 20 public:
21 static NavigatorPlugins& from(Navigator&); 21 static NavigatorPlugins& from(Navigator&);
22 static NavigatorPlugins* toNavigatorPlugins(Navigator&); 22 static NavigatorPlugins* toNavigatorPlugins(Navigator&);
23 23
24 virtual ~NavigatorPlugins(); 24 virtual ~NavigatorPlugins();
25 25
26 static DOMPluginArray* plugins(Navigator&); 26 static DOMPluginArray* plugins(Navigator&);
27 static DOMMimeTypeArray* mimeTypes(Navigator&); 27 static DOMMimeTypeArray* mimeTypes(Navigator&);
28 static bool javaEnabled(Navigator&); 28 static bool javaEnabled(Navigator&);
29 29
30 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
31 31
32 private: 32 private:
33 explicit NavigatorPlugins(Navigator&); 33 explicit NavigatorPlugins(Navigator&);
34 34
35 static const char* supplementName(); 35 static const char* supplementName();
36 36
37 DOMPluginArray* plugins(LocalFrame*) const; 37 DOMPluginArray* plugins(LocalFrame*) const;
38 DOMMimeTypeArray* mimeTypes(LocalFrame*) const; 38 DOMMimeTypeArray* mimeTypes(LocalFrame*) const;
39 39
40 mutable Member<DOMPluginArray> m_plugins; 40 mutable Member<DOMPluginArray> m_plugins;
41 mutable Member<DOMMimeTypeArray> m_mimeTypes; 41 mutable Member<DOMMimeTypeArray> m_mimeTypes;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // NavigatorPlugins_h 46 #endif // NavigatorPlugins_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698