Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/common/form_data.cc

Issue 12543010: Establish components/autofill and move some files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/form_data.h ('k') | chrome/common/form_data_predictions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "chrome/common/form_data.h"
6
7 #include "base/string_util.h"
8
9 FormData::FormData()
10 : user_submitted(false) {
11 }
12
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),
20 ssl_status(data.ssl_status) {
21 }
22
23 FormData::~FormData() {
24 }
25
26 bool FormData::operator==(const FormData& form) const {
27 return (name == form.name &&
28 StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
29 origin == form.origin &&
30 action == form.action &&
31 user_submitted == form.user_submitted &&
32 fields == form.fields &&
33 ssl_status.Equals(form.ssl_status));
34 }
35
36 bool FormData::operator!=(const FormData& form) const {
37 return !operator==(form);
38 }
OLDNEW
« no previous file with comments | « chrome/common/form_data.h ('k') | chrome/common/form_data_predictions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698