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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 10969017: Create a new URLRequestJobFactory for isolated request contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 22e381f1a9f61c20bbe2118c0061be7f8702e8f2..36d6f1b3621ff9233caf7819a58aeac2b308157e 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -146,7 +146,8 @@ class ProfileIOData {
explicit MediaRequestContext(
chrome_browser_net::LoadTimeStats* load_time_stats);
- void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory);
+ void SetHttpTransactionFactory(
+ scoped_ptr<net::HttpTransactionFactory> http_factory);
Charlie Reis 2012/09/20 17:47:03 Why pass a scoped_ptr? I haven't seen that. Was
awong 2012/09/20 22:11:00 It's new functionality as of January. This way the
private:
virtual ~MediaRequestContext();
@@ -162,13 +163,16 @@ class ProfileIOData {
chrome_browser_net::LoadTimeStats* load_time_stats);
void SetCookieStore(net::CookieStore* cookie_store);
- void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory);
+ void SetHttpTransactionFactory(
+ scoped_ptr<net::HttpTransactionFactory> http_factory);
+ void SetJobFactory(scoped_ptr<net::URLRequestJobFactory> job_factory);
private:
virtual ~AppRequestContext();
scoped_refptr<net::CookieStore> cookie_store_;
scoped_ptr<net::HttpTransactionFactory> http_factory_;
+ scoped_ptr<net::URLRequestJobFactory> job_factory_;
};
// Created on the UI thread, read on the IO thread during ProfileIOData lazy

Powered by Google App Engine
This is Rietveld 408576698