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

Unified Diff: net/dns/dns_config_service.h

Issue 9369045: [net] HostResolverImpl + DnsTransaction + DnsConfigService = Asynchronous DNS ready for experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Denitted. Created 8 years, 10 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/async_host_resolver_unittest.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.h
diff --git a/net/dns/dns_config_service.h b/net/dns/dns_config_service.h
index b3e151f3e1b85d34dbc94c279e5b9be4c3f144fa..51e26b396e83446b662da9788a0fc991b5dfefff 100644
--- a/net/dns/dns_config_service.h
+++ b/net/dns/dns_config_service.h
@@ -12,6 +12,7 @@
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/threading/non_thread_safe.h"
#include "base/time.h"
@@ -64,6 +65,7 @@ struct NET_EXPORT_PRIVATE DnsConfig {
// Service for watching when the system DNS settings have changed.
// Depending on the platform, watches files in /etc/ or win registry.
+// This class also serves as the do-nothing mock implementation.
class NET_EXPORT_PRIVATE DnsConfigService
: NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
@@ -78,7 +80,7 @@ class NET_EXPORT_PRIVATE DnsConfigService
};
// Creates the platform-specific DnsConfigService.
- static DnsConfigService* CreateSystemService();
+ static scoped_ptr<DnsConfigService> CreateSystemService();
DnsConfigService();
virtual ~DnsConfigService();
« no previous file with comments | « net/dns/async_host_resolver_unittest.cc ('k') | net/dns/dns_config_service_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698