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

Unified Diff: content/child/npapi/plugin_url_fetcher.cc

Issue 132233022: Fix chrome.webRequest.onBeforeRequest for requests coming from NPAPI plugin processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_url_fetcher.cc
===================================================================
--- content/child/npapi/plugin_url_fetcher.cc (revision 245717)
+++ content/child/npapi/plugin_url_fetcher.cc (working copy)
@@ -12,6 +12,7 @@
#include "content/child/npapi/plugin_stream_url.h"
#include "content/child/npapi/webplugin_resource_client.h"
#include "content/child/plugin_messages.h"
+#include "content/child/request_extra_data.h"
#include "content/child/resource_dispatcher.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
@@ -81,6 +82,7 @@
bool is_plugin_src_load,
int origin_pid,
int render_frame_id,
+ int render_view_id,
unsigned long resource_id,
bool copy_stream_data)
: plugin_stream_(plugin_stream),
@@ -102,8 +104,25 @@
request_info.load_flags = net::LOAD_NORMAL;
request_info.requestor_pid = origin_pid;
request_info.request_type = ResourceType::OBJECT;
- request_info.routing_id = render_frame_id;
+ request_info.routing_id = render_view_id;
+ RequestExtraData extra_data(blink::WebReferrerPolicyDefault,
+ base::string16(),
+ false,
+ render_frame_id,
+ false,
+ -1,
+ GURL(),
+ false,
+ -1,
+ true,
+ PAGE_TRANSITION_LINK,
+ false,
+ -1,
+ -1);
+
+ request_info.extra_data = &extra_data;
+
std::vector<char> body;
if (method == "POST") {
bool content_type_found = false;
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698