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

Unified Diff: Source/core/html/MediaKeyError.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/MediaError.idl ('k') | Source/core/html/MediaKeyError.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaKeyError.h
diff --git a/Source/core/html/MediaKeyError.h b/Source/core/html/MediaKeyError.h
index 7f5a862146a5bb654d33e3c2a0142b9eeb802c10..d5ca94f2a9d9ec02acbebc87af1a8f39607a546c 100644
--- a/Source/core/html/MediaKeyError.h
+++ b/Source/core/html/MediaKeyError.h
@@ -29,12 +29,10 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace blink {
-class CORE_EXPORT MediaKeyError final : public RefCountedWillBeGarbageCollectedFinalized<MediaKeyError>, public ScriptWrappable {
+class CORE_EXPORT MediaKeyError final : public GarbageCollected<MediaKeyError>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
enum {
@@ -47,9 +45,9 @@ public:
};
typedef unsigned short Code;
- static PassRefPtrWillBeRawPtr<MediaKeyError> create(Code code, unsigned systemCode = 0)
+ static MediaKeyError* create(Code code, unsigned systemCode = 0)
{
- return adoptRefWillBeNoop(new MediaKeyError(code, systemCode));
+ return new MediaKeyError(code, systemCode);
}
Code code() const { return m_code; }
« no previous file with comments | « Source/core/html/MediaError.idl ('k') | Source/core/html/MediaKeyError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698