OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/forms/form_data.h" | 5 #include "chrome/common/form_data.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 | 8 |
9 namespace webkit { | |
10 namespace forms { | |
11 | |
12 FormData::FormData() | 9 FormData::FormData() |
13 : user_submitted(false) { | 10 : user_submitted(false) { |
14 } | 11 } |
15 | 12 |
16 FormData::FormData(const FormData& data) | 13 FormData::FormData(const FormData& data) |
17 : name(data.name), | 14 : name(data.name), |
18 method(data.method), | 15 method(data.method), |
19 origin(data.origin), | 16 origin(data.origin), |
20 action(data.action), | 17 action(data.action), |
21 user_submitted(data.user_submitted), | 18 user_submitted(data.user_submitted), |
22 fields(data.fields) { | 19 fields(data.fields) { |
23 } | 20 } |
24 | 21 |
25 FormData::~FormData() { | 22 FormData::~FormData() { |
26 } | 23 } |
27 | 24 |
28 bool FormData::operator==(const FormData& form) const { | 25 bool FormData::operator==(const FormData& form) const { |
29 return (name == form.name && | 26 return (name == form.name && |
30 StringToLowerASCII(method) == StringToLowerASCII(form.method) && | 27 StringToLowerASCII(method) == StringToLowerASCII(form.method) && |
31 origin == form.origin && | 28 origin == form.origin && |
32 action == form.action && | 29 action == form.action && |
33 user_submitted == form.user_submitted && | 30 user_submitted == form.user_submitted && |
34 fields == form.fields); | 31 fields == form.fields); |
35 } | 32 } |
36 | |
37 } // namespace forms | |
38 } // namespace webkit | |
OLD | NEW |