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