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

Unified Diff: Source/core/html/MediaError.h

Issue 1306613002: Keep auxilliary media objects on the heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/core/html/MediaController.cpp ('k') | Source/core/html/MediaError.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaError.h
diff --git a/Source/core/html/MediaError.h b/Source/core/html/MediaError.h
index 45cc768a76816040fcc3e723cabfe990d5d7b8b8..65bcb0ff959b96b9c659bf347e7abe6bc15bf43f 100644
--- a/Source/core/html/MediaError.h
+++ b/Source/core/html/MediaError.h
@@ -28,12 +28,11 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+#include "platform/heap/Handle.h"
namespace blink {
-class CORE_EXPORT MediaError final : public RefCountedWillBeGarbageCollectedFinalized<MediaError>, public ScriptWrappable {
+class CORE_EXPORT MediaError final : public GarbageCollected<MediaError>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
enum Code {
@@ -43,9 +42,9 @@ public:
MEDIA_ERR_SRC_NOT_SUPPORTED,
};
- static PassRefPtrWillBeRawPtr<MediaError> create(Code code)
+ static MediaError* create(Code code)
{
- return adoptRefWillBeNoop(new MediaError(code));
+ return new MediaError(code);
}
Code code() const { return m_code; }
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | Source/core/html/MediaError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698