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

Unified Diff: Source/core/html/TimeRanges.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/MediaKeyEvent.h ('k') | Source/core/html/TimeRanges.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/TimeRanges.h
diff --git a/Source/core/html/TimeRanges.h b/Source/core/html/TimeRanges.h
index eade2b1ca3e90bcbbd664bf4742ff47ceef88ebc..1fb8b1c55dbb3df75a02bd041a2da7253c372512 100644
--- a/Source/core/html/TimeRanges.h
+++ b/Source/core/html/TimeRanges.h
@@ -28,9 +28,8 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
#include "public/platform/WebTimeRange.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
#include <algorithm>
@@ -39,7 +38,7 @@ namespace blink {
class ExceptionState;
-class CORE_EXPORT TimeRanges : public RefCountedWillBeGarbageCollectedFinalized<TimeRanges>, public ScriptWrappable {
+class CORE_EXPORT TimeRanges : public GarbageCollectedFinalized<TimeRanges>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
// We consider all the Ranges to be semi-bounded as follow: [start, end[
@@ -85,17 +84,17 @@ public:
}
};
- static PassRefPtrWillBeRawPtr<TimeRanges> create()
+ static TimeRanges* create()
{
- return adoptRefWillBeNoop(new TimeRanges);
+ return new TimeRanges;
}
- static PassRefPtrWillBeRawPtr<TimeRanges> create(double start, double end)
+ static TimeRanges* create(double start, double end)
{
- return adoptRefWillBeNoop(new TimeRanges(start, end));
+ return new TimeRanges(start, end);
}
- static PassRefPtrWillBeRawPtr<TimeRanges> create(const blink::WebTimeRanges&);
+ static TimeRanges* create(const WebTimeRanges&);
- PassRefPtrWillBeRawPtr<TimeRanges> copy() const;
+ TimeRanges* copy() const;
void intersectWith(const TimeRanges*);
void unionWith(const TimeRanges*);
« no previous file with comments | « Source/core/html/MediaKeyEvent.h ('k') | Source/core/html/TimeRanges.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698