| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 FileWriter::~FileWriter() | 70 FileWriter::~FileWriter() |
| 71 { | 71 { |
| 72 ASSERT(!m_recursionDepth); | 72 ASSERT(!m_recursionDepth); |
| 73 if (m_readyState == WRITING) | 73 if (m_readyState == WRITING) |
| 74 stop(); | 74 stop(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 const AtomicString& FileWriter::interfaceName() const | 77 const AtomicString& FileWriter::interfaceName() const |
| 78 { | 78 { |
| 79 return eventNames().interfaceForFileWriter; | 79 return EventTargetNames::FileWriter; |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool FileWriter::canSuspend() const | 82 bool FileWriter::canSuspend() const |
| 83 { | 83 { |
| 84 // FIXME: It is not currently possible to suspend a FileWriter, so pages wit
h FileWriter can not go into page cache. | 84 // FIXME: It is not currently possible to suspend a FileWriter, so pages wit
h FileWriter can not go into page cache. |
| 85 return false; | 85 return false; |
| 86 } | 86 } |
| 87 | 87 |
| 88 void FileWriter::stop() | 88 void FileWriter::stop() |
| 89 { | 89 { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 320 } |
| 321 | 321 |
| 322 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& es) | 322 void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& es) |
| 323 { | 323 { |
| 324 ASSERT(errorCode); | 324 ASSERT(errorCode); |
| 325 FileError::throwDOMException(es, errorCode); | 325 FileError::throwDOMException(es, errorCode); |
| 326 m_error = FileError::create(errorCode); | 326 m_error = FileError::create(errorCode); |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace WebCore | 329 } // namespace WebCore |
| OLD | NEW |