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

Unified Diff: chrome/browser/net/resolve_proxy_msg_helper.h

Issue 165430: Reference count ProxyService.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Sync Created 11 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: chrome/browser/net/resolve_proxy_msg_helper.h
===================================================================
--- chrome/browser/net/resolve_proxy_msg_helper.h (revision 23574)
+++ chrome/browser/net/resolve_proxy_msg_helper.h (working copy)
@@ -8,6 +8,7 @@
#include <deque>
#include <string>
+#include "base/ref_counted.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
#include "net/base/completion_callback.h"
@@ -84,7 +85,7 @@
};
// Members for the current outstanding proxy request.
- net::ProxyService* proxy_service_;
+ scoped_refptr<net::ProxyService> proxy_service_;
net::CompletionCallbackImpl<ResolveProxyMsgHelper> callback_;
net::ProxyInfo proxy_info_;
@@ -96,7 +97,7 @@
// Specified by unit-tests, to use this proxy service in place of the
// global one.
- net::ProxyService* proxy_service_override_;
+ scoped_refptr<net::ProxyService> proxy_service_override_;
};
#endif // CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/resolve_proxy_msg_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698