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

Unified Diff: content/child/request_extra_data.h

Issue 451923002: Add a X-Requested-With header to URL requests for PPAPI Flash (only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests. Created 6 years, 4 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/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 0302346def0c273275886346fa752a7502daa635..2b34d2afe687288a5ca3dc90deeac3f7f6d821c2 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -90,12 +90,17 @@ class CONTENT_EXPORT RequestExtraData
// override and an empty string to indicate that there should be no user
// agent.
const blink::WebString& custom_user_agent() const {
- return custom_user_agent_;
+ return custom_user_agent_;
}
- void set_custom_user_agent(
- const blink::WebString& custom_user_agent) {
+ void set_custom_user_agent(const blink::WebString& custom_user_agent) {
custom_user_agent_ = custom_user_agent;
}
+ const blink::WebString& x_requested_with() const {
+ return x_requested_with_;
brettw 2014/08/18 21:22:48 I think trung's patch called this just "requested
Tom Sepez 2014/08/18 22:15:23 done.
+ }
+ void set_x_requested_with(const blink::WebString& x_requested_with) {
+ x_requested_with_ = x_requested_with;
+ }
private:
blink::WebPageVisibilityState visibility_state_;
@@ -111,6 +116,7 @@ class CONTENT_EXPORT RequestExtraData
int transferred_request_request_id_;
int service_worker_provider_id_;
blink::WebString custom_user_agent_;
+ blink::WebString x_requested_with_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};

Powered by Google App Engine
This is Rietveld 408576698