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

Unified Diff: content/browser/plugin_process_host.cc

Issue 1481583002: Narrow the interface to ResourceMessageFilter::GetContexts() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify when |origin_pid| argument is used. Created 5 years, 1 month 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/plugin_process_host.cc
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
index 7cc5d8730dbb62af95f227744e6029b5da4d10a2..ae6c3aeb9422619183360f9213cacffb3d9a4b89 100644
--- a/content/browser/plugin_process_host.cc
+++ b/content/browser/plugin_process_host.cc
@@ -422,11 +422,12 @@ void PluginProcessHost::OnChannelDestroyed(int renderer_id) {
resource_context_map_.erase(renderer_id);
}
-void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request,
+void PluginProcessHost::GetContexts(ResourceType resource_type,
+ int origin_pid,
ResourceContext** resource_context,
net::URLRequestContext** request_context) {
*resource_context =
- resource_context_map_[request.origin_pid].resource_context;
+ resource_context_map_[origin_pid].resource_context;
*request_context = (*resource_context)->GetRequestContext();
}

Powered by Google App Engine
This is Rietveld 408576698