Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "net/http/http_stream_factory_impl_job_factory.h" | |
| 6 | |
| 7 namespace net { | |
| 8 | |
| 9 HttpStreamFactoryImpl::JobFactory::JobFactory() {} | |
| 10 | |
| 11 HttpStreamFactoryImpl::JobFactory::~JobFactory() {} | |
| 12 | |
| 13 HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactory::CreateJob( | |
| 14 HttpStreamFactoryImpl::Job::Delegate* delegate, | |
| 15 JobType job_type, | |
| 16 HttpNetworkSession* session, | |
| 17 const HttpRequestInfo& request_info, | |
| 18 RequestPriority priority, | |
| 19 const SSLConfig& server_ssl_config, | |
| 20 const SSLConfig& proxy_ssl_config, | |
| 21 HostPortPair destination, | |
| 22 GURL origin_url, | |
| 23 NetLog* net_log) { | |
| 24 return (new Job(delegate, job_type, session, request_info, priority, | |
|
Ryan Hamilton
2016/06/03 00:11:24
nit: no need for ()s around the new.
Zhongyi Shi
2016/06/03 23:09:21
Done.
| |
| 25 server_ssl_config, proxy_ssl_config, destination, origin_url, | |
| 26 net_log)); | |
| 27 } | |
| 28 | |
| 29 HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactory::CreateJob( | |
| 30 HttpStreamFactoryImpl::Job::Delegate* delegate, | |
| 31 JobType job_type, | |
| 32 HttpNetworkSession* session, | |
| 33 const HttpRequestInfo& request_info, | |
| 34 RequestPriority priority, | |
| 35 const SSLConfig& server_ssl_config, | |
| 36 const SSLConfig& proxy_ssl_config, | |
| 37 HostPortPair destination, | |
| 38 GURL origin_url, | |
| 39 AlternativeService alternative_service, | |
| 40 NetLog* net_log) { | |
| 41 return (new Job(delegate, job_type, session, request_info, priority, | |
| 42 server_ssl_config, proxy_ssl_config, destination, origin_url, | |
| 43 alternative_service, net_log)); | |
| 44 } | |
| 45 } // namespace net | |
| OLD | NEW |