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

Unified Diff: net/base/mapped_host_resolver.h

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary initialization; respond to review Created 8 years, 2 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/base/host_resolver_impl_unittest.cc ('k') | net/base/mapped_host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mapped_host_resolver.h
diff --git a/net/base/mapped_host_resolver.h b/net/base/mapped_host_resolver.h
index d1edf45cf515641b347f7af21bcef8a09e29ae66..3073c97168edae31af488dfc0153275546d157b4 100644
--- a/net/base/mapped_host_resolver.h
+++ b/net/base/mapped_host_resolver.h
@@ -21,8 +21,8 @@ namespace net {
class NET_EXPORT MappedHostResolver : public HostResolver {
public:
// Creates a MappedHostResolver that forwards all of its requests through
- // |impl|. It takes ownership of |impl|.
- explicit MappedHostResolver(HostResolver* impl);
+ // |impl|.
+ explicit MappedHostResolver(scoped_ptr<HostResolver> impl);
virtual ~MappedHostResolver();
// Adds a rule to this mapper. The format of the rule can be one of:
« no previous file with comments | « net/base/host_resolver_impl_unittest.cc ('k') | net/base/mapped_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698