| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/fetch/BlobBytesConsumer.h" | 5 #include "modules/fetch/BlobBytesConsumer.h" |
| 6 | 6 |
| 7 #include "core/fetch/FetchInitiatorTypeNames.h" | |
| 8 #include "core/loader/ThreadableLoader.h" | 7 #include "core/loader/ThreadableLoader.h" |
| 9 #include "modules/fetch/BytesConsumerForDataConsumerHandle.h" | 8 #include "modules/fetch/BytesConsumerForDataConsumerHandle.h" |
| 10 #include "platform/blob/BlobData.h" | 9 #include "platform/blob/BlobData.h" |
| 11 #include "platform/blob/BlobRegistry.h" | 10 #include "platform/blob/BlobRegistry.h" |
| 12 #include "platform/blob/BlobURL.h" | 11 #include "platform/blob/BlobURL.h" |
| 12 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 13 #include "platform/network/ResourceError.h" | 13 #include "platform/network/ResourceError.h" |
| 14 #include "platform/network/ResourceRequest.h" | 14 #include "platform/network/ResourceRequest.h" |
| 15 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
| 16 #include "platform/weborigin/SecurityOrigin.h" | 16 #include "platform/weborigin/SecurityOrigin.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 BlobBytesConsumer::BlobBytesConsumer(ExecutionContext* executionContext, | 20 BlobBytesConsumer::BlobBytesConsumer(ExecutionContext* executionContext, |
| 21 PassRefPtr<BlobDataHandle> blobDataHandle, | 21 PassRefPtr<BlobDataHandle> blobDataHandle, |
| 22 ThreadableLoader* loader) | 22 ThreadableLoader* loader) |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 void BlobBytesConsumer::clear() { | 297 void BlobBytesConsumer::clear() { |
| 298 DCHECK_NE(m_state, PublicState::ReadableOrWaiting); | 298 DCHECK_NE(m_state, PublicState::ReadableOrWaiting); |
| 299 if (m_loader) { | 299 if (m_loader) { |
| 300 m_loader->cancel(); | 300 m_loader->cancel(); |
| 301 m_loader = nullptr; | 301 m_loader = nullptr; |
| 302 } | 302 } |
| 303 m_client = nullptr; | 303 m_client = nullptr; |
| 304 } | 304 } |
| 305 | 305 |
| 306 } // namespace blink | 306 } // namespace blink |
| OLD | NEW |