| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 m_lastProgressNotificationTimeMS(0) {} | 201 m_lastProgressNotificationTimeMS(0) {} |
| 202 | 202 |
| 203 FileReader::~FileReader() { | 203 FileReader::~FileReader() { |
| 204 terminate(); | 204 terminate(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 const AtomicString& FileReader::interfaceName() const { | 207 const AtomicString& FileReader::interfaceName() const { |
| 208 return EventTargetNames::FileReader; | 208 return EventTargetNames::FileReader; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void FileReader::stop() { | 211 void FileReader::contextDestroyed() { |
| 212 // The delayed abort task tidies up and advances to the DONE state. | 212 // The delayed abort task tidies up and advances to the DONE state. |
| 213 if (m_loadingState == LoadingStateAborted) | 213 if (m_loadingState == LoadingStateAborted) |
| 214 return; | 214 return; |
| 215 | 215 |
| 216 if (hasPendingActivity()) | 216 if (hasPendingActivity()) |
| 217 ThrottlingController::finishReader( | 217 ThrottlingController::finishReader( |
| 218 getExecutionContext(), this, | 218 getExecutionContext(), this, |
| 219 ThrottlingController::removeReader(getExecutionContext(), this)); | 219 ThrottlingController::removeReader(getExecutionContext(), this)); |
| 220 terminate(); | 220 terminate(); |
| 221 } | 221 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 ProgressEvent::create(type, false, m_loader->bytesLoaded(), 0)); | 470 ProgressEvent::create(type, false, m_loader->bytesLoaded(), 0)); |
| 471 } | 471 } |
| 472 | 472 |
| 473 DEFINE_TRACE(FileReader) { | 473 DEFINE_TRACE(FileReader) { |
| 474 visitor->trace(m_error); | 474 visitor->trace(m_error); |
| 475 EventTargetWithInlineData::trace(visitor); | 475 EventTargetWithInlineData::trace(visitor); |
| 476 ActiveDOMObject::trace(visitor); | 476 ActiveDOMObject::trace(visitor); |
| 477 } | 477 } |
| 478 | 478 |
| 479 } // namespace blink | 479 } // namespace blink |
| OLD | NEW |