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 const int WebURLRequestExtraDataImpl::kType = 0; |
| 13 |
12 WebURLRequestExtraDataImpl::WebURLRequestExtraDataImpl( | 14 WebURLRequestExtraDataImpl::WebURLRequestExtraDataImpl( |
13 WebReferrerPolicy referrer_policy, | 15 WebReferrerPolicy referrer_policy, |
14 const WebString& custom_user_agent) | 16 const WebString& custom_user_agent) |
15 : referrer_policy_(referrer_policy), | 17 : referrer_policy_(referrer_policy), |
16 custom_user_agent_(custom_user_agent) { | 18 custom_user_agent_(custom_user_agent), |
| 19 type_id_(kType) { |
17 } | 20 } |
18 | 21 |
19 WebURLRequestExtraDataImpl::~WebURLRequestExtraDataImpl() { | 22 WebURLRequestExtraDataImpl::~WebURLRequestExtraDataImpl() { |
20 } | 23 } |
21 | 24 |
22 } // namespace webkit_glue | 25 } // namespace webkit_glue |
OLD | NEW |