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

Unified Diff: net/url_request/url_request_test_util.h

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years, 8 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/url_request/url_request_test_util.h
diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h
index e8823491bbad6adf322c4444d0adbe8802b8eea9..c1722f076352413d6ab25b8c98b817b11dcf8d86 100644
--- a/net/url_request/url_request_test_util.h
+++ b/net/url_request/url_request_test_util.h
@@ -58,6 +58,7 @@ class TestURLRequestContext : public net::URLRequestContext {
explicit TestURLRequestContext(const std::string& proxy);
TestURLRequestContext(const std::string& proxy,
net::HostResolver* host_resolver);
+ virtual ~TestURLRequestContext();
// Configures the proxy server, must not be called after Init().
void SetProxyFromString(const std::string& proxy);
@@ -65,9 +66,6 @@ class TestURLRequestContext : public net::URLRequestContext {
void Init();
- protected:
- virtual ~TestURLRequestContext();
-
private:
bool initialized_;
net::URLRequestContextStorage context_storage_;
@@ -93,7 +91,7 @@ class TestURLRequestContextGetter : public net::URLRequestContextGetter {
private:
const scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
- scoped_refptr<TestURLRequestContext> context_;
+ scoped_ptr<TestURLRequestContext> context_;
};
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698