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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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/FileEntrySync.cpp ('k') | Source/modules/filesystem/FileWriterSync.cpp » ('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 84e2a5d5d62e323a23ba2d54024462467f91d6d9..a22fac948d30ba7d7b9648af4fd849b991d356b8 100644
--- a/Source/modules/filesystem/FileWriter.cpp
+++ b/Source/modules/filesystem/FileWriter.cpp
@@ -87,21 +87,21 @@ void FileWriter::stop()
m_readyState = DONE;
}
-void FileWriter::write(Blob* data, ExceptionState& es)
+void FileWriter::write(Blob* data, ExceptionState& exceptionState)
{
ASSERT(writer());
ASSERT(data);
ASSERT(m_truncateLength == -1);
if (m_readyState == WRITING) {
- setError(FileError::INVALID_STATE_ERR, es);
+ setError(FileError::INVALID_STATE_ERR, exceptionState);
return;
}
if (!data) {
- setError(FileError::TYPE_MISMATCH_ERR, es);
+ setError(FileError::TYPE_MISMATCH_ERR, exceptionState);
return;
}
if (m_recursionDepth > kMaxRecursionDepth) {
- setError(FileError::SECURITY_ERR, es);
+ setError(FileError::SECURITY_ERR, exceptionState);
return;
}
@@ -120,11 +120,11 @@ void FileWriter::write(Blob* data, ExceptionState& es)
fireEvent(EventTypeNames::writestart);
}
-void FileWriter::seek(long long position, ExceptionState& es)
+void FileWriter::seek(long long position, ExceptionState& exceptionState)
{
ASSERT(writer());
if (m_readyState == WRITING) {
- setError(FileError::INVALID_STATE_ERR, es);
+ setError(FileError::INVALID_STATE_ERR, exceptionState);
return;
}
@@ -133,16 +133,16 @@ void FileWriter::seek(long long position, ExceptionState& es)
seekInternal(position);
}
-void FileWriter::truncate(long long position, ExceptionState& es)
+void FileWriter::truncate(long long position, ExceptionState& exceptionState)
{
ASSERT(writer());
ASSERT(m_truncateLength == -1);
if (m_readyState == WRITING || position < 0) {
- setError(FileError::INVALID_STATE_ERR, es);
+ setError(FileError::INVALID_STATE_ERR, exceptionState);
return;
}
if (m_recursionDepth > kMaxRecursionDepth) {
- setError(FileError::SECURITY_ERR, es);
+ setError(FileError::SECURITY_ERR, exceptionState);
return;
}
@@ -160,7 +160,7 @@ void FileWriter::truncate(long long position, ExceptionState& es)
fireEvent(EventTypeNames::writestart);
}
-void FileWriter::abort(ExceptionState& es)
+void FileWriter::abort(ExceptionState& exceptionState)
{
ASSERT(writer());
if (m_readyState != WRITING)
@@ -312,10 +312,10 @@ void FileWriter::fireEvent(const AtomicString& type)
ASSERT(m_recursionDepth >= 0);
}
-void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& es)
+void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& exceptionState)
{
ASSERT(errorCode);
- FileError::throwDOMException(es, errorCode);
+ FileError::throwDOMException(exceptionState, errorCode);
m_error = FileError::create(errorCode);
}
« no previous file with comments | « Source/modules/filesystem/FileEntrySync.cpp ('k') | Source/modules/filesystem/FileWriterSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698