mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
30 lines
838 B
C++
30 lines
838 B
C++
// 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() {}
|
|
|
|
DhcpProxyScriptFetcherFactory::~DhcpProxyScriptFetcherFactory() {}
|
|
|
|
std::unique_ptr<DhcpProxyScriptFetcher> DhcpProxyScriptFetcherFactory::Create(
|
|
URLRequestContext* context) {
|
|
#if defined(OS_WIN)
|
|
return std::make_unique<DhcpProxyScriptFetcherWin>(context);
|
|
#else
|
|
return std::make_unique<DoNothingDhcpProxyScriptFetcher>();
|
|
#endif
|
|
}
|
|
|
|
} // namespace net
|