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

Unified Diff: Source/modules/plugins/DOMPluginArray.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/DOMPlugin.cpp ('k') | Source/modules/plugins/DOMPluginArray.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/plugins/DOMPluginArray.h
diff --git a/Source/modules/plugins/DOMPluginArray.h b/Source/modules/plugins/DOMPluginArray.h
index 71a8cf5f71e737933d191284fe5d561a6ae09354..ee22470faa2bb7189b6023b2dc03593c6b712598 100644
--- a/Source/modules/plugins/DOMPluginArray.h
+++ b/Source/modules/plugins/DOMPluginArray.h
@@ -26,26 +26,24 @@
#include "modules/plugins/DOMPlugin.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace blink {
class LocalFrame;
class PluginData;
-class DOMPluginArray final : public RefCountedWillBeGarbageCollected<DOMPluginArray>, public ScriptWrappable, public DOMWindowProperty {
+class DOMPluginArray final : public GarbageCollectedFinalized<DOMPluginArray>, public ScriptWrappable, public DOMWindowProperty {
DEFINE_WRAPPERTYPEINFO();
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMPluginArray);
public:
- static PassRefPtrWillBeRawPtr<DOMPluginArray> create(LocalFrame* frame)
+ static DOMPluginArray* create(LocalFrame* frame)
{
- return adoptRefWillBeNoop(new DOMPluginArray(frame));
+ return new DOMPluginArray(frame);
}
unsigned length() const;
- PassRefPtrWillBeRawPtr<DOMPlugin> item(unsigned index);
- PassRefPtrWillBeRawPtr<DOMPlugin> namedItem(const AtomicString& propertyName);
+ DOMPlugin* item(unsigned index);
+ DOMPlugin* namedItem(const AtomicString& propertyName);
void refresh(bool reload);
@@ -58,4 +56,4 @@ private:
} // namespace blink
-#endif // PluginArray_h
+#endif // DOMPluginArray_h
« no previous file with comments | « Source/modules/plugins/DOMPlugin.cpp ('k') | Source/modules/plugins/DOMPluginArray.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698