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
3 // found in the LICENSE file.
5 #include "chrome/common/form_data.h"
7 #include "base/string_util.h"
10 : user_submitted(false) {
13 FormData::FormData(const FormData
& data
)
18 user_submitted(data
.user_submitted
),
22 FormData::~FormData() {
25 bool FormData::operator==(const FormData
& form
) const {
26 return (name
== form
.name
&&
27 StringToLowerASCII(method
) == StringToLowerASCII(form
.method
) &&
28 origin
== form
.origin
&&
29 action
== form
.action
&&
30 user_submitted
== form
.user_submitted
&&
31 fields
== form
.fields
);
34 bool FormData::operator!=(const FormData
& form
) const {
35 return !operator==(form
);