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

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

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed review comments. Created 7 years, 11 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 #ifndef CHROME_COMMON_FORM_DATA_H__ 5 #ifndef CHROME_COMMON_FORM_DATA_H__
6 #define CHROME_COMMON_FORM_DATA_H__ 6 #define CHROME_COMMON_FORM_DATA_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/common/form_field_data.h" 11 #include "chrome/common/form_field_data.h"
12 #include "content/public/common/ssl_status.h"
12 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
13 14
14 // Holds information about a form to be filled and/or submitted. 15 // Holds information about a form to be filled and/or submitted.
15 struct FormData { 16 struct FormData {
16 // The name of the form. 17 // The name of the form.
17 string16 name; 18 string16 name;
18 // GET or POST. 19 // GET or POST.
19 string16 method; 20 string16 method;
20 // The URL (minus query parameters) containing the form. 21 // The URL (minus query parameters) containing the form.
21 GURL origin; 22 GURL origin;
22 // The action target of the form. 23 // The action target of the form.
23 GURL action; 24 GURL action;
24 // true if this form was submitted by a user gesture and not javascript. 25 // true if this form was submitted by a user gesture and not javascript.
25 bool user_submitted; 26 bool user_submitted;
26 // A vector of all the input fields in the form. 27 // A vector of all the input fields in the form.
27 std::vector<FormFieldData> fields; 28 std::vector<FormFieldData> fields;
29 // SSL status of the URL contatining the form.
30 content::SSLStatus ssl_status;
28 31
29 FormData(); 32 FormData();
30 FormData(const FormData& data); 33 FormData(const FormData& data);
31 ~FormData(); 34 ~FormData();
32 35
33 // Used by FormStructureTest. 36 // Used by FormStructureTest.
34 bool operator==(const FormData& form) const; 37 bool operator==(const FormData& form) const;
35 bool operator!=(const FormData& form) const; 38 bool operator!=(const FormData& form) const;
36 }; 39 };
37 40
38 #endif // CHROME_COMMON_FORM_DATA_H__ 41 #endif // CHROME_COMMON_FORM_DATA_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698