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

Unified Diff: net/dns/dns_config_service_posix.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_service_posix.h
diff --git a/net/dns/dns_config_service_posix.h b/net/dns/dns_config_service_posix.h
deleted file mode 100644
index 349c82d1b8b543b4e3abfac8b25d20611e5a8378..0000000000000000000000000000000000000000
--- a/net/dns/dns_config_service_posix.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2012 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 NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
-#define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
-
-#if !defined(OS_ANDROID)
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <resolv.h>
-#endif
-
-#include "base/compiler_specific.h"
-#include "net/base/net_export.h"
-#include "net/dns/dns_config_service.h"
-
-namespace net {
-
-// Use DnsConfigService::CreateSystemService to use it outside of tests.
-namespace internal {
-
-class NET_EXPORT_PRIVATE DnsConfigServicePosix : public DnsConfigService {
- public:
- DnsConfigServicePosix();
- ~DnsConfigServicePosix() override;
-
- protected:
- // DnsConfigService:
- void ReadNow() override;
- bool StartWatching() override;
-
- private:
- class Watcher;
- class ConfigReader;
- class HostsReader;
-
- void OnConfigChanged(bool succeeded);
- void OnHostsChanged(bool succeeded);
-
- scoped_ptr<Watcher> watcher_;
- scoped_refptr<ConfigReader> config_reader_;
- scoped_refptr<HostsReader> hosts_reader_;
-
- DISALLOW_COPY_AND_ASSIGN(DnsConfigServicePosix);
-};
-
-enum ConfigParsePosixResult {
- CONFIG_PARSE_POSIX_OK = 0,
- CONFIG_PARSE_POSIX_RES_INIT_FAILED,
- CONFIG_PARSE_POSIX_RES_INIT_UNSET,
- CONFIG_PARSE_POSIX_BAD_ADDRESS,
- CONFIG_PARSE_POSIX_BAD_EXT_STRUCT,
- CONFIG_PARSE_POSIX_NULL_ADDRESS,
- CONFIG_PARSE_POSIX_NO_NAMESERVERS,
- CONFIG_PARSE_POSIX_MISSING_OPTIONS,
- CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS,
- CONFIG_PARSE_POSIX_NO_DNSINFO,
- CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration.
-};
-
-#if !defined(OS_ANDROID)
-// Fills in |dns_config| from |res|.
-ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig(
- const struct __res_state& res, DnsConfig* dns_config);
-#endif
-
-} // namespace internal
-
-} // namespace net
-
-#endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698