| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 , m_readyState(INIT) | 57 , m_readyState(INIT) |
| 58 , m_operationInProgress(OperationNone) | 58 , m_operationInProgress(OperationNone) |
| 59 , m_queuedOperation(OperationNone) | 59 , m_queuedOperation(OperationNone) |
| 60 , m_bytesWritten(0) | 60 , m_bytesWritten(0) |
| 61 , m_bytesToWrite(0) | 61 , m_bytesToWrite(0) |
| 62 , m_truncateLength(-1) | 62 , m_truncateLength(-1) |
| 63 , m_numAborts(0) | 63 , m_numAborts(0) |
| 64 , m_recursionDepth(0) | 64 , m_recursionDepth(0) |
| 65 , m_lastProgressNotificationTimeMS(0) | 65 , m_lastProgressNotificationTimeMS(0) |
| 66 { | 66 { |
| 67 ScriptWrappable::init(this); |
| 67 } | 68 } |
| 68 | 69 |
| 69 FileWriter::~FileWriter() | 70 FileWriter::~FileWriter() |
| 70 { | 71 { |
| 71 ASSERT(!m_recursionDepth); | 72 ASSERT(!m_recursionDepth); |
| 72 if (m_readyState == WRITING) | 73 if (m_readyState == WRITING) |
| 73 stop(); | 74 stop(); |
| 74 } | 75 } |
| 75 | 76 |
| 76 const AtomicString& FileWriter::interfaceName() const | 77 const AtomicString& FileWriter::interfaceName() const |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 ASSERT(m_recursionDepth >= 0); | 319 ASSERT(m_recursionDepth >= 0); |
| 319 } | 320 } |
| 320 | 321 |
| 321 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionCode& ec) | 322 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionCode& ec) |
| 322 { | 323 { |
| 323 ec = FileException::ErrorCodeToExceptionCode(errorCode); | 324 ec = FileException::ErrorCodeToExceptionCode(errorCode); |
| 324 m_error = FileError::create(errorCode); | 325 m_error = FileError::create(errorCode); |
| 325 } | 326 } |
| 326 | 327 |
| 327 } // namespace WebCore | 328 } // namespace WebCore |
| OLD | NEW |