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

Unified Diff: Source/core/dom/DOMError.h

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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/clipboard/DataTransferItemList.cpp ('k') | Source/core/dom/DOMError.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMError.h
diff --git a/Source/core/dom/DOMError.h b/Source/core/dom/DOMError.h
index a66d0e2175f686d62a065babec403e35445fd363..bd442edcf78d8dc3e2acc3196d730ed3bc50cdf2 100644
--- a/Source/core/dom/DOMError.h
+++ b/Source/core/dom/DOMError.h
@@ -29,36 +29,39 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class DOMError : public RefCounted<DOMError>, public ScriptWrappable {
+class DOMError : public RefCountedWillBeGarbageCollectedFinalized<DOMError>, public ScriptWrappable {
public:
- static PassRefPtr<DOMError> create(const String& name)
+ static PassRefPtrWillBeRawPtr<DOMError> create(const String& name)
{
- return adoptRef(new DOMError(name));
+ return adoptRefWillBeNoop(new DOMError(name));
}
- static PassRefPtr<DOMError> create(const String& name, const String& message)
+ static PassRefPtrWillBeRawPtr<DOMError> create(const String& name, const String& message)
{
- return adoptRef(new DOMError(name, message));
+ return adoptRefWillBeNoop(new DOMError(name, message));
}
- static PassRefPtr<DOMError> create(ExceptionCode ec)
+ static PassRefPtrWillBeRawPtr<DOMError> create(ExceptionCode ec)
{
- return adoptRef(new DOMError(DOMException::getErrorName(ec), DOMException::getErrorMessage(ec)));
+ return adoptRefWillBeNoop(new DOMError(DOMException::getErrorName(ec), DOMException::getErrorMessage(ec)));
}
- static PassRefPtr<DOMError> create(ExceptionCode ec, const String& message)
+ static PassRefPtrWillBeRawPtr<DOMError> create(ExceptionCode ec, const String& message)
{
- return adoptRef(new DOMError(DOMException::getErrorName(ec), message));
+ return adoptRefWillBeNoop(new DOMError(DOMException::getErrorName(ec), message));
}
const String& name() const { return m_name; }
const String& message() const { return m_message; }
+ void trace(Visitor*) { }
+
protected:
explicit DOMError(const String& name);
DOMError(const String& name, const String& message);
« no previous file with comments | « Source/core/clipboard/DataTransferItemList.cpp ('k') | Source/core/dom/DOMError.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698