Removing flow to demote App Launcher to App Host, so app_host.exe can be deleted...
[chromium-blink-merge.git] / chrome / common / form_data.cc
bloba78d451421e5691509ca6860b299961ecd20ceff
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"
9 FormData::FormData()
10 : user_submitted(false) {
13 FormData::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) {
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);