Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // |CORS flag| set." 514 // |CORS flag| set."
515 performHTTPFetch(true, false); 515 performHTTPFetch(true, false);
516 } 516 }
517 517
518 void FetchManager::Loader::dispose() 518 void FetchManager::Loader::dispose()
519 { 519 {
520 // Prevent notification 520 // Prevent notification
521 m_fetchManager = nullptr; 521 m_fetchManager = nullptr;
522 if (m_loader) { 522 if (m_loader) {
523 m_loader->cancel(); 523 m_loader->cancel();
524 m_loader.clear(); 524 m_loader.reset();
525 } 525 }
526 m_executionContext = nullptr; 526 m_executionContext = nullptr;
527 } 527 }
528 528
529 void FetchManager::Loader::performBasicFetch() 529 void FetchManager::Loader::performBasicFetch()
530 { 530 {
531 // "To perform a basic fetch using |request|, switch on |request|'s url's 531 // "To perform a basic fetch using |request|, switch on |request|'s url's
532 // scheme, and run the associated steps:" 532 // scheme, and run the associated steps:"
533 if (SchemeRegistry::shouldTreatURLSchemeAsSupportingFetchAPI(m_request->url( ).protocol())) { 533 if (SchemeRegistry::shouldTreatURLSchemeAsSupportingFetchAPI(m_request->url( ).protocol())) {
534 // "Return the result of performing an HTTP fetch using |request|." 534 // "Return the result of performing an HTTP fetch using |request|."
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 loader->dispose(); 738 loader->dispose();
739 } 739 }
740 740
741 DEFINE_TRACE(FetchManager) 741 DEFINE_TRACE(FetchManager)
742 { 742 {
743 visitor->trace(m_loaders); 743 visitor->trace(m_loaders);
744 ContextLifecycleObserver::trace(visitor); 744 ContextLifecycleObserver::trace(visitor);
745 } 745 }
746 746
747 } // namespace blink 747 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698