| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/FetchManager.h" | 5 #include "modules/fetch/FetchManager.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/V8ThrowException.h" | 10 #include "bindings/core/v8/V8ThrowException.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 : m_fetchManager(fetchManager), | 296 : m_fetchManager(fetchManager), |
| 297 m_resolver(resolver), | 297 m_resolver(resolver), |
| 298 m_request(request), | 298 m_request(request), |
| 299 m_failed(false), | 299 m_failed(false), |
| 300 m_finished(false), | 300 m_finished(false), |
| 301 m_responseHttpStatusCode(0), | 301 m_responseHttpStatusCode(0), |
| 302 m_integrityVerifier(nullptr), | 302 m_integrityVerifier(nullptr), |
| 303 m_didFinishLoading(false), | 303 m_didFinishLoading(false), |
| 304 m_isIsolatedWorld(isIsolatedWorld), | 304 m_isIsolatedWorld(isIsolatedWorld), |
| 305 m_executionContext(executionContext) { | 305 m_executionContext(executionContext) { |
| 306 ThreadState::current()->registerPreFinalizer(this); | |
| 307 m_urlList.append(request->url()); | 306 m_urlList.append(request->url()); |
| 308 } | 307 } |
| 309 | 308 |
| 310 FetchManager::Loader::~Loader() { | 309 FetchManager::Loader::~Loader() { |
| 311 ASSERT(!m_loader); | 310 ASSERT(!m_loader); |
| 312 } | 311 } |
| 313 | 312 |
| 314 DEFINE_TRACE(FetchManager::Loader) { | 313 DEFINE_TRACE(FetchManager::Loader) { |
| 315 visitor->trace(m_fetchManager); | 314 visitor->trace(m_fetchManager); |
| 316 visitor->trace(m_resolver); | 315 visitor->trace(m_resolver); |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 m_loaders.remove(loader); | 931 m_loaders.remove(loader); |
| 933 loader->dispose(); | 932 loader->dispose(); |
| 934 } | 933 } |
| 935 | 934 |
| 936 DEFINE_TRACE(FetchManager) { | 935 DEFINE_TRACE(FetchManager) { |
| 937 visitor->trace(m_loaders); | 936 visitor->trace(m_loaders); |
| 938 ContextLifecycleObserver::trace(visitor); | 937 ContextLifecycleObserver::trace(visitor); |
| 939 } | 938 } |
| 940 | 939 |
| 941 } // namespace blink | 940 } // namespace blink |
| OLD | NEW |