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

Unified Diff: content/browser/loader/resource_message_filter.cc

Issue 23851010: Modify ResourceMessageFilter so that it can support attaching to PluginProcessHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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: content/browser/loader/resource_message_filter.cc
===================================================================
--- content/browser/loader/resource_message_filter.cc (revision 222038)
+++ content/browser/loader/resource_message_filter.cc (working copy)
@@ -15,21 +15,16 @@
ResourceMessageFilter::ResourceMessageFilter(
int child_id,
int process_type,
- ResourceContext* resource_context,
ChromeAppCacheService* appcache_service,
ChromeBlobStorageContext* blob_storage_context,
fileapi::FileSystemContext* file_system_context,
- URLRequestContextSelector* url_request_context_selector)
+ const GetContextsCallback& get_contexts_callback)
: child_id_(child_id),
process_type_(process_type),
- resource_context_(resource_context),
appcache_service_(appcache_service),
blob_storage_context_(blob_storage_context),
file_system_context_(file_system_context),
- url_request_context_selector_(url_request_context_selector) {
- DCHECK(resource_context);
- DCHECK(url_request_context_selector);
- // |appcache_service| and |blob_storage_context| may be NULL in unittests.
+ get_contexts_callback_(get_contexts_callback) {
}
ResourceMessageFilter::~ResourceMessageFilter() {
@@ -49,9 +44,11 @@
message, this, message_was_ok);
}
-net::URLRequestContext* ResourceMessageFilter::GetURLRequestContext(
- ResourceType::Type type) {
- return url_request_context_selector_->GetRequestContext(type);
+void ResourceMessageFilter::GetContexts(
+ const ResourceHostMsg_Request& request,
+ ResourceContext** resource_context,
+ net::URLRequestContext** request_context) {
+ return get_contexts_callback_.Run(request, resource_context, request_context);
}
} // namespace content
« no previous file with comments | « content/browser/loader/resource_message_filter.h ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698