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

Side by Side Diff: Source/modules/filesystem/FileWriter.cpp

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 ASSERT(m_operationInProgress == OperationTruncate); 223 ASSERT(m_operationInProgress == OperationTruncate);
224 ASSERT(m_truncateLength >= 0); 224 ASSERT(m_truncateLength >= 0);
225 setLength(m_truncateLength); 225 setLength(m_truncateLength);
226 if (position() > length()) 226 if (position() > length())
227 setPosition(length()); 227 setPosition(length());
228 m_operationInProgress = OperationNone; 228 m_operationInProgress = OperationNone;
229 signalCompletion(FileError::OK); 229 signalCompletion(FileError::OK);
230 } 230 }
231 231
232 void FileWriter::didFail(blink::WebFileError code) 232 void FileWriter::didFail(WebFileError code)
233 { 233 {
234 ASSERT(m_operationInProgress != OperationNone); 234 ASSERT(m_operationInProgress != OperationNone);
235 ASSERT(static_cast<FileError::ErrorCode>(code) != FileError::OK); 235 ASSERT(static_cast<FileError::ErrorCode>(code) != FileError::OK);
236 if (m_operationInProgress == OperationAbort) { 236 if (m_operationInProgress == OperationAbort) {
237 completeAbort(); 237 completeAbort();
238 return; 238 return;
239 } 239 }
240 ASSERT(m_queuedOperation == OperationNone); 240 ASSERT(m_queuedOperation == OperationNone);
241 ASSERT(m_readyState == WRITING); 241 ASSERT(m_readyState == WRITING);
242 m_blobBeingWritten.clear(); 242 m_blobBeingWritten.clear();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 void FileWriter::trace(Visitor* visitor) 328 void FileWriter::trace(Visitor* visitor)
329 { 329 {
330 visitor->trace(m_error); 330 visitor->trace(m_error);
331 visitor->trace(m_blobBeingWritten); 331 visitor->trace(m_blobBeingWritten);
332 FileWriterBase::trace(visitor); 332 FileWriterBase::trace(visitor);
333 EventTargetWithInlineData::trace(visitor); 333 EventTargetWithInlineData::trace(visitor);
334 } 334 }
335 335
336 } // namespace blink 336 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileSystemCallbacks.cpp ('k') | Source/modules/filesystem/FileWriterBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698