Don't preload rarely seen large images
[chromium-blink-merge.git] / components / autofill / core / common / autofill_constants.h
blob168b5e0eca970d95fedf54f5d1a781194b82efbd
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
3 // found in the LICENSE file.
5 // Contains constants specific to the Autofill component.
7 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
8 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
10 #include <stddef.h> // For size_t
12 namespace autofill {
14 // A bit field mask for form or form element requirements.
15 // TODO(estade): remove after iOS no longer uses it. See crbug.com/459456
16 enum RequirementsMask {
17 REQUIRE_NONE = 0, // No requirements.
18 REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off.
21 // Help URL for the Autofill dialog.
22 extern const char kHelpURL[];
24 // The number of fields required by Autofill. Ideally we could send the forms
25 // to Autofill no matter how many fields are in the forms; however, finding the
26 // label for each field is a costly operation and we can't spare the cycles if
27 // it's not necessary.
28 extern const size_t kRequiredAutofillFields;
30 // Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC
31 enum ShowPasswordSuggestionsOptions {
32 SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */,
33 IS_PASSWORD_FIELD = 1 << 1 /* input field is a password field */
36 } // namespace autofill
38 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_