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

Unified Diff: net/http/http_stream_factory_impl_job_factory_impl.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 interface in JobController, remove JobControllerPeer Created 4 years, 6 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_impl.cc
diff --git a/net/http/http_stream_factory_impl_job_factory_impl.cc b/net/http/http_stream_factory_impl_job_factory_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bd68c6b59df38a5943c1c2d7fc688d887e551fb6
--- /dev/null
+++ b/net/http/http_stream_factory_impl_job_factory_impl.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_impl.h"
+
+namespace net {
+
+HttpStreamFactoryImpl::JobFactoryImpl::JobFactoryImpl() {}
+
+HttpStreamFactoryImpl::JobFactoryImpl::~JobFactoryImpl() {}
+
+HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactoryImpl::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,
+ server_ssl_config, proxy_ssl_config, destination, origin_url,
+ net_log);
+}
+
+HttpStreamFactoryImpl::Job* HttpStreamFactoryImpl::JobFactoryImpl::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