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 "config.h" | 5 #include "config.h" |
6 #include "modules/fetch/FetchManager.h" | 6 #include "modules/fetch/FetchManager.h" |
7 | 7 |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 { | 414 { |
415 ASSERT(!m_isStopped); | 415 ASSERT(!m_isStopped); |
416 m_isStopped = true; | 416 m_isStopped = true; |
417 for (auto& loader : m_loaders) { | 417 for (auto& loader : m_loaders) { |
418 loader->cleanup(); | 418 loader->cleanup(); |
419 } | 419 } |
420 } | 420 } |
421 | 421 |
422 void FetchManager::onLoaderFinished(Loader* loader) | 422 void FetchManager::onLoaderFinished(Loader* loader) |
423 { | 423 { |
424 // We don't use remove here, becuase it may cause recursive deletion. | 424 // We don't use remove here, because it may cause recursive deletion. |
425 OwnPtr<Loader> p = m_loaders.take(loader); | 425 OwnPtrWillBeRawPtr<Loader> p = m_loaders.take(loader); |
| 426 ALLOW_UNUSED_LOCAL(p); |
426 } | 427 } |
427 | 428 |
428 void FetchManager::trace(Visitor* visitor) | 429 void FetchManager::trace(Visitor* visitor) |
429 { | 430 { |
430 #if ENABLE(OILPAN) | 431 #if ENABLE(OILPAN) |
431 visitor->trace(m_executionContext); | 432 visitor->trace(m_executionContext); |
432 visitor->trace(m_loaders); | 433 visitor->trace(m_loaders); |
433 #endif | 434 #endif |
434 } | 435 } |
435 | 436 |
436 } // namespace blink | 437 } // namespace blink |
OLD | NEW |