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

Unified Diff: net/proxy/dhcp_proxy_script_fetcher_factory.h

Issue 1273013004: Returning scoped_ptr<> instead of raw pointer in DhcpProxyScriptFetcherFactory::Create (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: net/proxy/dhcp_proxy_script_fetcher_factory.h
diff --git a/net/proxy/dhcp_proxy_script_fetcher_factory.h b/net/proxy/dhcp_proxy_script_fetcher_factory.h
index 147435d6f0bf6a3fb7578aa01daf7d514ff2c395..9293eddb105bae95fc1d16475d9967b2bb9071b9 100644
--- a/net/proxy/dhcp_proxy_script_fetcher_factory.h
+++ b/net/proxy/dhcp_proxy_script_fetcher_factory.h
@@ -9,10 +9,10 @@
#include "base/memory/singleton.h"
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
+#include "net/proxy/dhcp_proxy_script_fetcher.h"
namespace net {
-class DhcpProxyScriptFetcher;
class URLRequestContext;
// Factory object for creating the appropriate concrete base class of
@@ -41,7 +41,8 @@ class NET_EXPORT DhcpProxyScriptFetcherFactory {
// reference to |url_request_context|. Be careful not to create cycles
// between the fetcher and the context; you can break such cycles by calling
// Cancel().
- DhcpProxyScriptFetcher* Create(URLRequestContext* url_request_context);
+ scoped_ptr<DhcpProxyScriptFetcher> Create(
+ URLRequestContext* url_request_context);
// Attempts to enable/disable the DHCP WPAD feature. Does nothing
// if |IsSupported()| returns false.

Powered by Google App Engine
This is Rietveld 408576698