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

Side by Side Diff: content/public/common/form_data.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Mostly cosmetic fixup Created 8 years, 2 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
OLDNEW
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/forms/form_data.h" 5 #include "content/public/common/form_data.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 8
9 namespace webkit { 9 namespace content {
10 namespace forms {
11 10
12 FormData::FormData() 11 FormData::FormData()
13 : user_submitted(false) { 12 : user_submitted(false) {
14 } 13 }
15 14
16 FormData::FormData(const FormData& data) 15 FormData::FormData(const FormData& data)
17 : name(data.name), 16 : name(data.name),
18 method(data.method), 17 method(data.method),
19 origin(data.origin), 18 origin(data.origin),
20 action(data.action), 19 action(data.action),
21 user_submitted(data.user_submitted), 20 user_submitted(data.user_submitted),
22 fields(data.fields) { 21 fields(data.fields) {
23 } 22 }
24 23
25 FormData::~FormData() { 24 FormData::~FormData() {
26 } 25 }
27 26
28 bool FormData::operator==(const FormData& form) const { 27 bool FormData::operator==(const FormData& form) const {
29 return (name == form.name && 28 return (name == form.name &&
30 StringToLowerASCII(method) == StringToLowerASCII(form.method) && 29 StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
31 origin == form.origin && 30 origin == form.origin &&
32 action == form.action && 31 action == form.action &&
33 user_submitted == form.user_submitted && 32 user_submitted == form.user_submitted &&
34 fields == form.fields); 33 fields == form.fields);
35 } 34 }
36 35
37 } // namespace forms 36 } // namespace content
38 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698