1 // Copyright (c) 2010 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. 4 5 #include "webkit/glue/form_data.h" 6 7 namespace webkit_glue { 8 FormData()9FormData::FormData() 10 : user_submitted(false) { 11 } 12 FormData(const FormData & data)13FormData::FormData(const FormData& data) 14 : name(data.name), 15 method(data.method), 16 origin(data.origin), 17 action(data.action), 18 user_submitted(data.user_submitted), 19 fields(data.fields) { 20 } 21 ~FormData()22FormData::~FormData() { 23 } 24 operator ==(const FormData & form) const25bool 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); 32 } 33 34 } // namespace webkit_glue 35