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

Unified Diff: net/dns/dns_config_watcher.h

Issue 10873018: [net] Move DnsConfigService to NetworkChangeNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years, 4 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_win.cc ('k') | net/dns/dns_config_watcher_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_watcher.h
diff --git a/net/dns/dns_config_watcher.h b/net/dns/dns_config_watcher.h
deleted file mode 100644
index 5a88bb7a54eba8b3a248fadc4e96cb9c68bb1d47..0000000000000000000000000000000000000000
--- a/net/dns/dns_config_watcher.h
+++ /dev/null
@@ -1,44 +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_WATCHER_H_
-#define NET_DNS_DNS_CONFIG_WATCHER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace net {
-namespace internal {
-
-// Watches when the system DNS settings have changed. It is used by
-// NetworkChangeNotifier to provide signals to registered DNSObservers.
-// Depending on the platform, watches files, Windows registry, or libnotify key.
-// If some watches fail, we keep the working parts, but NetworkChangeNotifier
-// will mark notifications to DNSObserver with the CHANGE_DNS_WATCH_FAILED bit.
-class DnsConfigWatcher {
- public:
- DnsConfigWatcher();
- ~DnsConfigWatcher();
-
- // Starts watching system configuration for changes. The current thread must
- // have a MessageLoopForIO. The signals will be delivered directly to
- // the global NetworkChangeNotifier.
- void Init();
-
- // Must be called on the same thread as Init. Required if dtor will be called
- // on a different thread.
- void CleanUp();
-
- private:
- // Platform-specific implementation.
- class Core;
- scoped_ptr<Core> core_;
-
- DISALLOW_COPY_AND_ASSIGN(DnsConfigWatcher);
-};
-
-} // namespace internal
-} // namespace net
-
-#endif // NET_DNS_DNS_CONFIG_WATCHER_H_
« no previous file with comments | « net/dns/dns_config_service_win.cc ('k') | net/dns/dns_config_watcher_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698