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

Unified Diff: net/http/http_stream_factory_impl_job_factory.cc

Issue 1941083002: JobController 1: Adding a new class HttpStreamFactoryImpl::JobController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add JobFactory and rewrite test cases 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698