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

Unified Diff: content/common/request_extra_data.cc

Issue 10886047: Pepper: Add a X-Requested-With header to URL requests done for Pepper plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 8 years 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/common/request_extra_data.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/request_extra_data.cc
diff --git a/content/common/request_extra_data.cc b/content/common/request_extra_data.cc
index 81101a15a501fb1fa8366b4abc5f79cb05299b56..f91abc2c81d5741e524894b721aa9118e9283b44 100644
--- a/content/common/request_extra_data.cc
+++ b/content/common/request_extra_data.cc
@@ -11,6 +11,7 @@ namespace content {
RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy,
const WebString& custom_user_agent,
+ const WebString& requested_with,
bool is_main_frame,
int64 frame_id,
bool parent_is_main_frame,
@@ -20,7 +21,8 @@ RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy,
int transferred_request_child_id,
int transferred_request_request_id)
: webkit_glue::WebURLRequestExtraDataImpl(referrer_policy,
- custom_user_agent),
+ custom_user_agent,
+ requested_with),
is_main_frame_(is_main_frame),
frame_id_(frame_id),
parent_is_main_frame_(parent_is_main_frame),
« no previous file with comments | « content/common/request_extra_data.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698