dhcp_pac_file_fetcher.cc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #include "net/proxy_resolution/dhcp_pac_file_fetcher.h"
  5. #include "net/base/net_errors.h"
  6. namespace net {
  7. std::string DhcpPacFileFetcher::GetFetcherName() const {
  8. return std::string();
  9. }
  10. DhcpPacFileFetcher::DhcpPacFileFetcher() = default;
  11. DhcpPacFileFetcher::~DhcpPacFileFetcher() = default;
  12. DoNothingDhcpPacFileFetcher::DoNothingDhcpPacFileFetcher() = default;
  13. DoNothingDhcpPacFileFetcher::~DoNothingDhcpPacFileFetcher() = default;
  14. int DoNothingDhcpPacFileFetcher::Fetch(
  15. std::u16string* utf16_text,
  16. CompletionOnceCallback callback,
  17. const NetLogWithSource& net_log,
  18. const NetworkTrafficAnnotationTag traffic_annotation) {
  19. return ERR_NOT_IMPLEMENTED;
  20. }
  21. void DoNothingDhcpPacFileFetcher::Cancel() {}
  22. void DoNothingDhcpPacFileFetcher::OnShutdown() {}
  23. const GURL& DoNothingDhcpPacFileFetcher::GetPacURL() const {
  24. return gurl_;
  25. }
  26. std::string DoNothingDhcpPacFileFetcher::GetFetcherName() const {
  27. return "do nothing";
  28. }
  29. } // namespace net