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

Unified Diff: Source/modules/filesystem/FileWriter.cpp

Issue 188503002: Oilpan: add transition types to FileSystem APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 9 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/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriter.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/FileWriter.cpp
diff --git a/Source/modules/filesystem/FileWriter.cpp b/Source/modules/filesystem/FileWriter.cpp
index a22fac948d30ba7d7b9648af4fd849b991d356b8..b67ab1274bcae937ce02609af1030e80bef276b3 100644
--- a/Source/modules/filesystem/FileWriter.cpp
+++ b/Source/modules/filesystem/FileWriter.cpp
@@ -44,9 +44,9 @@ namespace WebCore {
static const int kMaxRecursionDepth = 3;
static const double progressNotificationIntervalMS = 50;
-PassRefPtr<FileWriter> FileWriter::create(ExecutionContext* context)
+PassRefPtrWillBeRawPtr<FileWriter> FileWriter::create(ExecutionContext* context)
{
- RefPtr<FileWriter> fileWriter(adoptRef(new FileWriter(context)));
+ RefPtrWillBeRawPtr<FileWriter> fileWriter(adoptRefWillBeRefCountedGarbageCollected(new FileWriter(context)));
fileWriter->suspendIfNeeded();
return fileWriter.release();
}
@@ -319,4 +319,11 @@ void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& except
m_error = FileError::create(errorCode);
}
+void FileWriter::trace(Visitor* visitor)
+{
+ visitor->trace(m_error);
+ visitor->trace(m_blobBeingWritten);
+ FileWriterBase::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/filesystem/FileWriter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698