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

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

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 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 | Annotate | Revision Log
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 18 class NavigatorPlugins final : public GarbageCollectedFinalized<NavigatorPlugins >, public HeapSupplement<Navigator>, public DOMWindowProperty {
19 : public NoBaseWillBeGarbageCollected<NavigatorPlugins> 19 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins);
20 , public WillBeHeapSupplement<Navigator>
21 , DOMWindowProperty {
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPlugins);
23 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(NavigatorPlugins);
24 public: 20 public:
25 static NavigatorPlugins& from(Navigator&); 21 static NavigatorPlugins& from(Navigator&);
26 static NavigatorPlugins* toNavigatorPlugins(Navigator&); 22 static NavigatorPlugins* toNavigatorPlugins(Navigator&);
27 static const char* supplementName(); 23
24 virtual ~NavigatorPlugins();
28 25
29 static DOMPluginArray* plugins(Navigator&); 26 static DOMPluginArray* plugins(Navigator&);
30 static DOMMimeTypeArray* mimeTypes(Navigator&); 27 static DOMMimeTypeArray* mimeTypes(Navigator&);
31 static bool javaEnabled(Navigator&); 28 static bool javaEnabled(Navigator&);
32 29
33 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
34 31
35 private: 32 private:
36 explicit NavigatorPlugins(Navigator&); 33 explicit NavigatorPlugins(Navigator&);
37 34
35 static const char* supplementName();
36
38 DOMPluginArray* plugins(LocalFrame*) const; 37 DOMPluginArray* plugins(LocalFrame*) const;
39 DOMMimeTypeArray* mimeTypes(LocalFrame*) const; 38 DOMMimeTypeArray* mimeTypes(LocalFrame*) const;
40 bool javaEnabled(LocalFrame*) const; 39 bool javaEnabled(LocalFrame*) const;
41 40
42 mutable RefPtrWillBeMember<DOMPluginArray> m_plugins; 41 mutable RefPtrWillBeMember<DOMPluginArray> m_plugins;
43 mutable RefPtrWillBeMember<DOMMimeTypeArray> m_mimeTypes; 42 mutable RefPtrWillBeMember<DOMMimeTypeArray> m_mimeTypes;
44 }; 43 };
45 44
46 } // namespace blink 45 } // namespace blink
47 46
48 #endif // NavigatorPlugins_h 47 #endif // NavigatorPlugins_h
OLDNEW
« no previous file with comments | « Source/modules/permissions/NavigatorPermissions.cpp ('k') | Source/modules/plugins/NavigatorPlugins.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698