From 05aad32d741012a173ea8f1a4b5072dabe7c0188 Mon Sep 17 00:00:00 2001 From: "szym@chromium.org" Date: Wed, 16 May 2012 18:10:53 +0000 Subject: [net/dns] Isolate DnsConfigWatcher from DnsConfigService. DnsConfigWatcher is installed at NetworkChangeNotifier and provides signals to DNSObservers. DnsConfigService becomes a DNSObserver. BUG=114827,114223,128166 TEST=./net_unittests --gtest_filter=DnsConfigService* Review URL: https://chromiumcodereview.appspot.com/10377092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137457 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/network_change_notifier_win.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/base/network_change_notifier_win.h') diff --git a/net/base/network_change_notifier_win.h b/net/base/network_change_notifier_win.h index aee5304..d8c9a45 100644 --- a/net/base/network_change_notifier_win.h +++ b/net/base/network_change_notifier_win.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// 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. @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/threading/non_thread_safe.h" #include "base/timer.h" @@ -47,6 +48,7 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierWin int sequential_failures() { return sequential_failures_; } private: + class DnsWatcherThread; friend class NetworkChangeNotifierWinTest; // NetworkChangeNotifier methods: @@ -89,6 +91,9 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierWin // Used for calling WatchForAddressChange again on failure. base::WeakPtrFactory weak_factory_; + // Thread on which we can run DnsConfigWatcher. + scoped_ptr dns_watcher_thread_; + DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierWin); }; -- cgit v1.1