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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 2860903006: Handle webuis when using the network service. (Closed)
Patch Set: nits Created 3 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 "content/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 base::debug::DumpWithoutCrashing(); 627 base::debug::DumpWithoutCrashing();
628 } 628 }
629 629
630 const RequestExtraData empty_extra_data; 630 const RequestExtraData empty_extra_data;
631 const RequestExtraData* extra_data; 631 const RequestExtraData* extra_data;
632 if (request.GetExtraData()) 632 if (request.GetExtraData())
633 extra_data = static_cast<RequestExtraData*>(request.GetExtraData()); 633 extra_data = static_cast<RequestExtraData*>(request.GetExtraData());
634 else 634 else
635 extra_data = &empty_extra_data; 635 extra_data = &empty_extra_data;
636 extra_data->CopyToResourceRequest(resource_request.get()); 636 extra_data->CopyToResourceRequest(resource_request.get());
637 if (extra_data->url_loader_factory_override())
638 url_loader_factory_ = extra_data->url_loader_factory_override();
637 639
638 if (sync_load_response) { 640 if (sync_load_response) {
639 DCHECK(defers_loading_ == NOT_DEFERRING); 641 DCHECK(defers_loading_ == NOT_DEFERRING);
640 resource_dispatcher_->StartSync( 642 resource_dispatcher_->StartSync(
641 std::move(resource_request), request.RequestorID(), sync_load_response, 643 std::move(resource_request), request.RequestorID(), sync_load_response,
642 request.GetLoadingIPCType(), url_loader_factory_); 644 request.GetLoadingIPCType(), url_loader_factory_);
643 return; 645 return;
644 } 646 }
645 647
646 TRACE_EVENT_WITH_FLOW0("loading", "WebURLLoaderImpl::Context::Start", this, 648 TRACE_EVENT_WITH_FLOW0("loading", "WebURLLoaderImpl::Context::Start", this,
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 int intra_priority_value) { 1286 int intra_priority_value) {
1285 context_->DidChangePriority(new_priority, intra_priority_value); 1287 context_->DidChangePriority(new_priority, intra_priority_value);
1286 } 1288 }
1287 1289
1288 void WebURLLoaderImpl::SetLoadingTaskRunner( 1290 void WebURLLoaderImpl::SetLoadingTaskRunner(
1289 base::SingleThreadTaskRunner* loading_task_runner) { 1291 base::SingleThreadTaskRunner* loading_task_runner) {
1290 context_->SetTaskRunner(loading_task_runner); 1292 context_->SetTaskRunner(loading_task_runner);
1291 } 1293 }
1292 1294
1293 } // namespace content 1295 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698