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

Side by Side Diff: content/browser/loader/url_loader_factory_impl.cc

Issue 2817033002: Plumb the net::SSLInfo to the browser process when it's using the network service. (Closed)
Patch Set: add net::SSLInfo test Created 3 years, 8 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 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 "content/browser/loader/url_loader_factory_impl.h" 5 #include "content/browser/loader/url_loader_factory_impl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "content/browser/loader/resource_dispatcher_host_impl.h" 8 #include "content/browser/loader/resource_dispatcher_host_impl.h"
9 #include "content/browser/loader/resource_requester_info.h" 9 #include "content/browser/loader/resource_requester_info.h"
10 #include "content/common/resource_request.h" 10 #include "content/common/resource_request.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 URLLoaderFactoryImpl::~URLLoaderFactoryImpl() { 46 URLLoaderFactoryImpl::~URLLoaderFactoryImpl() {
47 DCHECK(io_thread_task_runner_->BelongsToCurrentThread()); 47 DCHECK(io_thread_task_runner_->BelongsToCurrentThread());
48 } 48 }
49 49
50 void URLLoaderFactoryImpl::CreateLoaderAndStart( 50 void URLLoaderFactoryImpl::CreateLoaderAndStart(
51 mojom::URLLoaderAssociatedRequest request, 51 mojom::URLLoaderAssociatedRequest request,
52 int32_t routing_id, 52 int32_t routing_id,
53 int32_t request_id, 53 int32_t request_id,
54 uint32_t options,
54 const ResourceRequest& url_request, 55 const ResourceRequest& url_request,
55 mojom::URLLoaderClientPtr client) { 56 mojom::URLLoaderClientPtr client) {
57 DCHECK_EQ(options, mojom::kURLLoadOptionNone);
56 CreateLoaderAndStart(requester_info_.get(), std::move(request), routing_id, 58 CreateLoaderAndStart(requester_info_.get(), std::move(request), routing_id,
57 request_id, url_request, std::move(client)); 59 request_id, url_request, std::move(client));
58 } 60 }
59 61
60 void URLLoaderFactoryImpl::SyncLoad(int32_t routing_id, 62 void URLLoaderFactoryImpl::SyncLoad(int32_t routing_id,
61 int32_t request_id, 63 int32_t request_id,
62 const ResourceRequest& url_request, 64 const ResourceRequest& url_request,
63 const SyncLoadCallback& callback) { 65 const SyncLoadCallback& callback) {
64 SyncLoad(requester_info_.get(), routing_id, request_id, url_request, 66 SyncLoad(requester_info_.get(), routing_id, request_id, url_request,
65 callback); 67 callback);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void URLLoaderFactoryImpl::Create( 103 void URLLoaderFactoryImpl::Create(
102 scoped_refptr<ResourceRequesterInfo> requester_info, 104 scoped_refptr<ResourceRequesterInfo> requester_info,
103 mojo::InterfaceRequest<mojom::URLLoaderFactory> request, 105 mojo::InterfaceRequest<mojom::URLLoaderFactory> request,
104 const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_runner) { 106 const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_runner) {
105 mojo::MakeStrongBinding(base::WrapUnique(new URLLoaderFactoryImpl( 107 mojo::MakeStrongBinding(base::WrapUnique(new URLLoaderFactoryImpl(
106 std::move(requester_info), io_thread_runner)), 108 std::move(requester_info), io_thread_runner)),
107 std::move(request)); 109 std::move(request));
108 } 110 }
109 111
110 } // namespace content 112 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/url_loader_factory_impl.h ('k') | content/browser/loader/url_loader_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698