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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 , m_asyncOperationId(0) | 66 , m_asyncOperationId(0) |
67 { | 67 { |
68 ScriptWrappable::init(this); | |
69 } | 68 } |
70 | 69 |
71 FileWriter::~FileWriter() | 70 FileWriter::~FileWriter() |
72 { | 71 { |
73 ASSERT(!m_recursionDepth); | 72 ASSERT(!m_recursionDepth); |
74 if (m_readyState == WRITING) | 73 if (m_readyState == WRITING) |
75 stop(); | 74 stop(); |
76 } | 75 } |
77 | 76 |
78 const AtomicString& FileWriter::interfaceName() const | 77 const AtomicString& FileWriter::interfaceName() const |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 326 |
328 void FileWriter::trace(Visitor* visitor) | 327 void FileWriter::trace(Visitor* visitor) |
329 { | 328 { |
330 visitor->trace(m_error); | 329 visitor->trace(m_error); |
331 visitor->trace(m_blobBeingWritten); | 330 visitor->trace(m_blobBeingWritten); |
332 FileWriterBase::trace(visitor); | 331 FileWriterBase::trace(visitor); |
333 EventTargetWithInlineData::trace(visitor); | 332 EventTargetWithInlineData::trace(visitor); |
334 } | 333 } |
335 | 334 |
336 } // namespace blink | 335 } // namespace blink |
OLD | NEW |