1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/proxy_resolution/dhcp_pac_file_fetcher.h"
6 
7 #include "net/base/net_errors.h"
8 
9 namespace net {
10 
GetFetcherName() const11 std::string DhcpPacFileFetcher::GetFetcherName() const {
12   return std::string();
13 }
14 
15 DhcpPacFileFetcher::DhcpPacFileFetcher() = default;
16 
17 DhcpPacFileFetcher::~DhcpPacFileFetcher() = default;
18 
19 DoNothingDhcpPacFileFetcher::DoNothingDhcpPacFileFetcher() = default;
20 
21 DoNothingDhcpPacFileFetcher::~DoNothingDhcpPacFileFetcher() = default;
22 
Fetch(base::string16 * utf16_text,CompletionOnceCallback callback,const NetLogWithSource & net_log,const NetworkTrafficAnnotationTag traffic_annotation)23 int DoNothingDhcpPacFileFetcher::Fetch(
24     base::string16* utf16_text,
25     CompletionOnceCallback callback,
26     const NetLogWithSource& net_log,
27     const NetworkTrafficAnnotationTag traffic_annotation) {
28   return ERR_NOT_IMPLEMENTED;
29 }
30 
Cancel()31 void DoNothingDhcpPacFileFetcher::Cancel() {}
32 
OnShutdown()33 void DoNothingDhcpPacFileFetcher::OnShutdown() {}
34 
GetPacURL() const35 const GURL& DoNothingDhcpPacFileFetcher::GetPacURL() const {
36   return gurl_;
37 }
38 
GetFetcherName() const39 std::string DoNothingDhcpPacFileFetcher::GetFetcherName() const {
40   return "do nothing";
41 }
42 
43 }  // namespace net
44