Chromium Code Reviews| Index: net/http/http_stream_factory_impl_job_factory.cc |
| diff --git a/net/http/http_stream_factory_impl_job_factory.cc b/net/http/http_stream_factory_impl_job_factory.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9baa4cb2a9378cc3a35ecb015b0e4da693cbf379 |
| --- /dev/null |
| +++ b/net/http/http_stream_factory_impl_job_factory.cc |
| @@ -0,0 +1,45 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "net/http/http_stream_factory_impl_job_factory.h" |
| + |
| +namespace net { |
| + |
| +HttpStreamFactoryImpl::JobFactory::JobFactory() {} |
| + |
| +HttpStreamFactoryImpl::JobFactory::~JobFactory() {} |
| + |
| +HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactory::CreateJob( |
| + HttpStreamFactoryImpl::Job::Delegate* delegate, |
| + JobType job_type, |
| + HttpNetworkSession* session, |
| + const HttpRequestInfo& request_info, |
| + RequestPriority priority, |
| + const SSLConfig& server_ssl_config, |
| + const SSLConfig& proxy_ssl_config, |
| + HostPortPair destination, |
| + GURL origin_url, |
| + NetLog* net_log) { |
| + 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.
|
| + server_ssl_config, proxy_ssl_config, destination, origin_url, |
| + net_log)); |
| +} |
| + |
| +HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactory::CreateJob( |
| + HttpStreamFactoryImpl::Job::Delegate* delegate, |
| + JobType job_type, |
| + HttpNetworkSession* session, |
| + const HttpRequestInfo& request_info, |
| + RequestPriority priority, |
| + const SSLConfig& server_ssl_config, |
| + const SSLConfig& proxy_ssl_config, |
| + HostPortPair destination, |
| + GURL origin_url, |
| + AlternativeService alternative_service, |
| + NetLog* net_log) { |
| + return (new Job(delegate, job_type, session, request_info, priority, |
| + server_ssl_config, proxy_ssl_config, destination, origin_url, |
| + alternative_service, net_log)); |
| +} |
| +} // namespace net |