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

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

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.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 74f94d81938228a36127195cb3c02179c75ab86f..0106758fb4a7dcd96fbf301ea92d97ffe20fd744 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -238,9 +238,9 @@ ProfileIOData::MediaRequestContext::MediaRequestContext(
}
void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory(
- net::HttpTransactionFactory* http_factory) {
- http_factory_.reset(http_factory);
- set_http_transaction_factory(http_factory);
+ scoped_ptr<net::HttpTransactionFactory> http_factory) {
+ http_factory_ = http_factory.Pass();
+ set_http_transaction_factory(http_factory_.get());
}
ProfileIOData::MediaRequestContext::~MediaRequestContext() {}
@@ -258,9 +258,15 @@ void ProfileIOData::AppRequestContext::SetCookieStore(
}
void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(
- net::HttpTransactionFactory* http_factory) {
- http_factory_.reset(http_factory);
- set_http_transaction_factory(http_factory);
+ scoped_ptr<net::HttpTransactionFactory> http_factory) {
+ http_factory_ = http_factory.Pass();
+ set_http_transaction_factory(http_factory.get());
+}
+
+void ProfileIOData::AppRequestContext::SetJobFactory(
+ scoped_ptr<net::URLRequestJobFactory> job_factory) {
+ job_factory_ = job_factory.Pass();
+ set_job_factory(job_factory_.get());
}
ProfileIOData::AppRequestContext::~AppRequestContext() {}

Powered by Google App Engine
This is Rietveld 408576698