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

Unified Diff: net/http/http_stream_factory_impl_job_factory_impl.h

Issue 1941083002: JobController 1: Adding a new class HttpStreamFactoryImpl::JobController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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.h
diff --git a/net/http/http_stream_factory_impl_job_factory_impl.h b/net/http/http_stream_factory_impl_job_factory_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f951374409478ce8129579c5de63eebedb317bf0
--- /dev/null
+++ b/net/http/http_stream_factory_impl_job_factory_impl.h
@@ -0,0 +1,50 @@
+// 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.
+
+#ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_FACTORY_IMPL_H_
+#define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_FACTORY_IMPL_H_
+
+#include <memory>
+
+#include "net/http/http_stream_factory_impl_job.h"
+#include "net/http/http_stream_factory_impl_job_controller.h"
+
+namespace net {
+
+class HttpNetworkSession;
+
+class HttpStreamFactoryImpl::JobFactoryImpl
Randy Smith (Not in Mondays) 2016/06/09 14:26:54 Suggestion: Why not have HttpStreamFactoryImpl der
+ : public HttpStreamFactoryImpl::JobController::JobFactory {
+ public:
+ JobFactoryImpl();
+
+ ~JobFactoryImpl() override;
+
+ Job* 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) override;
+
+ Job* 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) override;
+};
+
+} // namespace net
+
+#endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_FACTORY_IMPL_H_
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | net/http/http_stream_factory_impl_job_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698