OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/weburlrequest_extradata_impl.h" | 5 #include "webkit/glue/weburlrequest_extradata_impl.h" |
6 | 6 |
7 using WebKit::WebReferrerPolicy; | 7 using WebKit::WebReferrerPolicy; |
8 using WebKit::WebString; | 8 using WebKit::WebString; |
9 | 9 |
10 namespace webkit_glue { | 10 namespace webkit_glue { |
11 | 11 |
12 WebURLRequestExtraDataImpl::WebURLRequestExtraDataImpl( | 12 WebURLRequestExtraDataImpl::WebURLRequestExtraDataImpl( |
13 WebReferrerPolicy referrer_policy, | 13 WebReferrerPolicy referrer_policy, |
14 const WebString& custom_user_agent) | 14 const WebString& custom_user_agent, |
| 15 const WebString& requested_with) |
15 : referrer_policy_(referrer_policy), | 16 : referrer_policy_(referrer_policy), |
16 custom_user_agent_(custom_user_agent) { | 17 custom_user_agent_(custom_user_agent), |
| 18 requested_with_(requested_with) { |
17 } | 19 } |
18 | 20 |
19 WebURLRequestExtraDataImpl::~WebURLRequestExtraDataImpl() { | 21 WebURLRequestExtraDataImpl::~WebURLRequestExtraDataImpl() { |
20 } | 22 } |
21 | 23 |
22 } // namespace webkit_glue | 24 } // namespace webkit_glue |
OLD | NEW |