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

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: add comment about -1. 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
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | content/renderer/pepper/pepper_plugin_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bae5512c173c75922789db3a697c2921028e0355 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& requested_with() const {
+ return requested_with_;
+ }
+ void set_requested_with(const blink::WebString& requested_with) {
+ requested_with_ = 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 requested_with_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | content/renderer/pepper/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698