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

Side by Side Diff: components/autofill/core/common/autofill_constants.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed more comments Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Contains constants specific to the Autofill component. 5 // Contains constants specific to the Autofill component.
6 6
7 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 7 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
8 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 8 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
9 9
10 #include <stddef.h> // For size_t 10 #include <stddef.h> // For size_t
(...skipping 14 matching lines...) Expand all
25 const size_t kRequiredFieldsForPredictionRoutines = 3; 25 const size_t kRequiredFieldsForPredictionRoutines = 3;
26 26
27 // The minimum number of fields required to upload a form to the Autofill 27 // The minimum number of fields required to upload a form to the Autofill
28 // servers. 28 // servers.
29 const size_t kRequiredFieldsForUpload = 3; 29 const size_t kRequiredFieldsForUpload = 3;
30 30
31 // The minimum number of fields in a form that contains only password fields to 31 // The minimum number of fields in a form that contains only password fields to
32 // upload the form to and request predictions from the Autofill servers. 32 // upload the form to and request predictions from the Autofill servers.
33 const size_t kRequiredFieldsForFormsWithOnlyPasswordFields = 2; 33 const size_t kRequiredFieldsForFormsWithOnlyPasswordFields = 2;
34 34
35 // Special query id used between the browser and the renderer when the action
36 // is initiated from the browser.
37 const int kNoQueryId = -1;
38
35 // Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC 39 // Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC
36 enum ShowPasswordSuggestionsOptions { 40 enum ShowPasswordSuggestionsOptions {
37 SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */, 41 SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */,
38 IS_PASSWORD_FIELD = 1 << 1 /* input field is a password field */ 42 IS_PASSWORD_FIELD = 1 << 1 /* input field is a password field */
39 }; 43 };
40 44
41 } // namespace autofill 45 } // namespace autofill
42 46
43 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 47 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698