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

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

Issue 295613003: Oilpan: make MediaError + TrackEvent heap savvier. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/HTMLMediaElement.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 86ace1108bf59ebf5efd0407344d0cb13e5d70c8..0169c75971317c6aa74bdb606ddcf9be92fd09d4 100644
--- a/Source/core/html/MediaError.h
+++ b/Source/core/html/MediaError.h
@@ -32,7 +32,7 @@
namespace WebCore {
-class MediaError : public RefCounted<MediaError>, public ScriptWrappable {
+class MediaError FINAL : public RefCountedWillBeGarbageCollectedFinalized<MediaError>, public ScriptWrappable {
public:
enum Code {
MEDIA_ERR_ABORTED = 1,
@@ -42,10 +42,15 @@ public:
MEDIA_ERR_ENCRYPTED
};
- static PassRefPtr<MediaError> create(Code code) { return adoptRef(new MediaError(code)); }
+ static PassRefPtrWillBeRawPtr<MediaError> create(Code code)
+ {
+ return adoptRefWillBeNoop(new MediaError(code));
+ }
Code code() const { return m_code; }
+ void trace(Visitor*) { }
+
private:
MediaError(Code code) : m_code(code)
{
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/MediaError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698