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

Unified Diff: net/proxy/dhcp_proxy_script_fetcher_factory.cc

Issue 7019015: Revert 85646 - Adds support for the DHCP portion of the WPAD (proxy auto-discovery) protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « net/proxy/dhcp_proxy_script_fetcher_factory.h ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/dhcp_proxy_script_fetcher_factory.cc
===================================================================
--- net/proxy/dhcp_proxy_script_fetcher_factory.cc (revision 85647)
+++ net/proxy/dhcp_proxy_script_fetcher_factory.cc (working copy)
@@ -1,56 +0,0 @@
-// Copyright (c) 2011 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/proxy/dhcp_proxy_script_fetcher_factory.h"
-
-#include "net/base/net_errors.h"
-#include "net/proxy/dhcp_proxy_script_fetcher.h"
-
-#if defined(OS_WIN)
-#include "net/proxy/dhcp_proxy_script_fetcher_win.h"
-#endif
-
-namespace net {
-
-DhcpProxyScriptFetcherFactory::DhcpProxyScriptFetcherFactory() {
- // TODO(joi): Change this default, and the comment on |set_enabled()|,
- // when the time is right.
- set_enabled(false);
-}
-
-DhcpProxyScriptFetcher* DhcpProxyScriptFetcherFactory::Create(
- URLRequestContext* context) {
- if (!feature_enabled_) {
- return new DoNothingDhcpProxyScriptFetcher();
- } else {
- DCHECK(IsSupported());
- DhcpProxyScriptFetcher* ret = NULL;
-#if defined(OS_WIN)
- ret = new DhcpProxyScriptFetcherWin(context);
-#endif
- DCHECK(ret);
- return ret;
- }
-}
-
-void DhcpProxyScriptFetcherFactory::set_enabled(bool enabled) {
- if (IsSupported()) {
- feature_enabled_ = enabled;
- }
-}
-
-bool DhcpProxyScriptFetcherFactory::enabled() const {
- return feature_enabled_;
-}
-
-// static
-bool DhcpProxyScriptFetcherFactory::IsSupported() {
-#if defined(OS_WIN)
- return true;
-#else
- return false;
-#endif
-}
-
-} // namespace net
« no previous file with comments | « net/proxy/dhcp_proxy_script_fetcher_factory.h ('k') | net/proxy/dhcp_proxy_script_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698