| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 | 222 |
| 223 FileReader::FileReader(ExecutionContext* context) | 223 FileReader::FileReader(ExecutionContext* context) |
| 224 : ActiveDOMObject(context) | 224 : ActiveDOMObject(context) |
| 225 , m_state(EMPTY) | 225 , m_state(EMPTY) |
| 226 , m_loadingState(LoadingStateNone) | 226 , m_loadingState(LoadingStateNone) |
| 227 , m_readType(FileReaderLoader::ReadAsBinaryString) | 227 , m_readType(FileReaderLoader::ReadAsBinaryString) |
| 228 , m_lastProgressNotificationTimeMS(0) | 228 , m_lastProgressNotificationTimeMS(0) |
| 229 , m_asyncOperationId(0) | 229 , m_asyncOperationId(0) |
| 230 { | 230 { |
| 231 ScriptWrappable::init(this); | |
| 232 } | 231 } |
| 233 | 232 |
| 234 FileReader::~FileReader() | 233 FileReader::~FileReader() |
| 235 { | 234 { |
| 236 terminate(); | 235 terminate(); |
| 237 } | 236 } |
| 238 | 237 |
| 239 const AtomicString& FileReader::interfaceName() const | 238 const AtomicString& FileReader::interfaceName() const |
| 240 { | 239 { |
| 241 return EventTargetNames::FileReader; | 240 return EventTargetNames::FileReader; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 return m_loader->stringResult(); | 481 return m_loader->stringResult(); |
| 483 } | 482 } |
| 484 | 483 |
| 485 void FileReader::trace(Visitor* visitor) | 484 void FileReader::trace(Visitor* visitor) |
| 486 { | 485 { |
| 487 visitor->trace(m_error); | 486 visitor->trace(m_error); |
| 488 EventTargetWithInlineData::trace(visitor); | 487 EventTargetWithInlineData::trace(visitor); |
| 489 } | 488 } |
| 490 | 489 |
| 491 } // namespace blink | 490 } // namespace blink |
| OLD | NEW |