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