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

Unified Diff: Source/modules/plugins/DOMPlugin.h

Issue 1107783002: Oilpan: have Navigator plugin objects on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/plugins/DOMMimeTypeArray.cpp ('k') | Source/modules/plugins/DOMPlugin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/plugins/DOMPlugin.h
diff --git a/Source/modules/plugins/DOMPlugin.h b/Source/modules/plugins/DOMPlugin.h
index 1a094b276a38ddadb4952e627bca57f3d892214f..ac15bdb12b1c2f228e9a3c6d847d04463d66c199 100644
--- a/Source/modules/plugins/DOMPlugin.h
+++ b/Source/modules/plugins/DOMPlugin.h
@@ -25,20 +25,19 @@
#include "modules/plugins/DOMMimeType.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
-#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
namespace blink {
class PluginData;
-class DOMPlugin final : public RefCountedWillBeGarbageCollectedFinalized<DOMPlugin>, public ScriptWrappable, public LocalFrameLifecycleObserver {
+class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>, public ScriptWrappable, public LocalFrameLifecycleObserver {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMPlugin);
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<DOMPlugin> create(PluginData* pluginData, LocalFrame* frame, unsigned index)
+ static DOMPlugin* create(PluginData* pluginData, LocalFrame* frame, unsigned index)
{
- return adoptRefWillBeNoop(new DOMPlugin(pluginData, frame, index));
+ return new DOMPlugin(pluginData, frame, index);
}
virtual ~DOMPlugin();
@@ -48,8 +47,8 @@ public:
unsigned length() const;
- PassRefPtrWillBeRawPtr<DOMMimeType> item(unsigned index);
- PassRefPtrWillBeRawPtr<DOMMimeType> namedItem(const AtomicString& propertyName);
+ DOMMimeType* item(unsigned index);
+ DOMMimeType* namedItem(const AtomicString& propertyName);
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « Source/modules/plugins/DOMMimeTypeArray.cpp ('k') | Source/modules/plugins/DOMPlugin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698