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

Unified Diff: chromeos/network/dhcp_proxy_script_fetcher_factory_chromeos.h

Issue 2929153002: Use URLRequestContextBuilderMojo to create the SystemURLRequestContext. (Closed)
Patch Set: Merge Created 3 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: chromeos/network/dhcp_proxy_script_fetcher_factory_chromeos.h
diff --git a/chromeos/network/dhcp_proxy_script_fetcher_factory_chromeos.h b/chromeos/network/dhcp_proxy_script_fetcher_factory_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..9265c96c46ccacacc0bbdcad9a3b554a4f8e62a2
--- /dev/null
+++ b/chromeos/network/dhcp_proxy_script_fetcher_factory_chromeos.h
@@ -0,0 +1,40 @@
+// Copyright 2017 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 CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_FACTORY_CHROMEOS_H_
+#define CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_FACTORY_CHROMEOS_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "chromeos/chromeos_export.h"
+#include "net/proxy/dhcp_proxy_script_fetcher_factory.h"
+
+namespace net {
+class DhcpProxyScriptFetcher;
+class URLRequestContext;
+}
+
+namespace chromeos {
+
+// ChromeOS specific implementation of DhcpProxyScriptFetcherFactory.
+// TODO(mmenke): This won't work at all with an out-of-process network service.
+// Figure out a way forward there.
Randy Smith (Not in Mondays) 2017/06/15 19:13:30 This isn't a problem with the Win-specific proxy s
mmenke 2017/06/15 19:33:24 On Windows, the classes are entirely within net/,
+class CHROMEOS_EXPORT DhcpProxyScriptFetcherFactoryChromeos
+ : public net::DhcpProxyScriptFetcherFactory {
+ public:
+ DhcpProxyScriptFetcherFactoryChromeos();
+ ~DhcpProxyScriptFetcherFactoryChromeos() override;
+
+ // net::DhcpProxyScriptFetcherFactory implementation.
+ std::unique_ptr<net::DhcpProxyScriptFetcher> Create(
+ net::URLRequestContext* url_request_context) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DhcpProxyScriptFetcherFactoryChromeos);
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_FACTORY_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698