Chromium Code Reviews| 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); |
| }; |