autofill_switches.cc revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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.
4
5#include "components/autofill/core/common/autofill_switches.h"
6
7namespace autofill {
8namespace switches {
9
10// Flag used to tell Chrome the base url of the Autofill service.
11const char kAutofillServiceUrl[]            = "autofill-service-url";
12
13// Forces the password manager to not ignore autocomplete='off' for password
14// forms.
15const char kDisableIgnoreAutocompleteOff[]  = "do-not-ignore-autocomplete-off";
16
17// Disables an interactive autocomplete UI. See kEnableInteractiveAutocomplete
18// for a description.
19const char kDisableInteractiveAutocomplete[] =
20    "disable-interactive-autocomplete";
21
22// Disables password generation when we detect that the user is going through
23// account creation.
24const char kDisablePasswordGeneration[]     = "disable-password-generation";
25
26// Enables an interactive autocomplete UI and a way to invoke this UI from
27// WebKit by enabling HTMLFormElement#requestAutocomplete (and associated
28// autocomplete* events and logic).
29const char kEnableInteractiveAutocomplete[] = "enable-interactive-autocomplete";
30
31// Enables password generation when we detect that the user is going through
32// account creation.
33const char kEnablePasswordGeneration[]      = "enable-password-generation";
34
35// Removes the requirement that we recieved a ping from the autofill servers
36// and that the user doesn't have the given form blacklisted. Used in testing.
37const char kLocalHeuristicsOnlyForPasswordGeneration[] =
38    "local-heuristics-only-for-password-generation";
39
40// Annotates forms with Autofill field type predictions.
41const char kShowAutofillTypePredictions[]   = "show-autofill-type-predictions";
42
43// Secure service URL for Online Wallet service. Used as the base url to escrow
44// credit card numbers.
45const char kWalletSecureServiceUrl[]        = "wallet-secure-service-url";
46
47// Service URL for Online Wallet service. Used as the base url for Online Wallet
48// API calls.
49const char kWalletServiceUrl[]              = "wallet-service-url";
50
51// Use the sandbox Online Wallet service URL (for developer testing).
52const char kWalletServiceUseSandbox[]       = "wallet-service-use-sandbox";
53
54}  // namespace switches
55}  // namespace autofill
56