| Index: chrome/browser/extensions/api/autofill_private/autofill_private_api.h
|
| diff --git a/chrome/browser/extensions/api/autofill_private/autofill_private_api.h b/chrome/browser/extensions/api/autofill_private/autofill_private_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..776bd3ab678a4ce8aae45a2b8158e49d34cd95ea
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/autofill_private/autofill_private_api.h
|
| @@ -0,0 +1,115 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/macros.h"
|
| +#include "extensions/browser/extension_function.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +class AutofillPrivateSaveAddressFunction : public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateSaveAddressFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveAddress",
|
| + AUTOFILLPRIVATE_SAVEADDRESS);
|
| +
|
| + protected:
|
| + ~AutofillPrivateSaveAddressFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveAddressFunction);
|
| +};
|
| +
|
| +class AutofillPrivateGetAddressComponentsFunction :
|
| + public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateGetAddressComponentsFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.getAddressComponents",
|
| + AUTOFILLPRIVATE_GETADDRESSCOMPONENTS);
|
| +
|
| + protected:
|
| + ~AutofillPrivateGetAddressComponentsFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateGetAddressComponentsFunction);
|
| +};
|
| +
|
| +class AutofillPrivateSaveCreditCardFunction : public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateSaveCreditCardFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.saveCreditCard",
|
| + AUTOFILLPRIVATE_SAVECREDITCARD);
|
| +
|
| + protected:
|
| + ~AutofillPrivateSaveCreditCardFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateSaveCreditCardFunction);
|
| +};
|
| +
|
| +class AutofillPrivateRemoveEntryFunction : public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateRemoveEntryFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.removeEntry",
|
| + AUTOFILLPRIVATE_REMOVEENTRY);
|
| +
|
| + protected:
|
| + ~AutofillPrivateRemoveEntryFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateRemoveEntryFunction);
|
| +};
|
| +
|
| +class AutofillPrivateValidatePhoneNumbersFunction :
|
| + public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateValidatePhoneNumbersFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.validatePhoneNumbers",
|
| + AUTOFILLPRIVATE_VALIDATEPHONENUMBERS);
|
| +
|
| + protected:
|
| + ~AutofillPrivateValidatePhoneNumbersFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateValidatePhoneNumbersFunction);
|
| +};
|
| +
|
| +class AutofillPrivateMaskCreditCardFunction : public UIThreadExtensionFunction {
|
| + public:
|
| + AutofillPrivateMaskCreditCardFunction() {}
|
| + DECLARE_EXTENSION_FUNCTION("autofillPrivate.maskCreditCard",
|
| + AUTOFILLPRIVATE_MASKCREDITCARD);
|
| +
|
| + protected:
|
| + ~AutofillPrivateMaskCreditCardFunction() override;
|
| +
|
| + // ExtensionFunction overrides.
|
| + ResponseAction Run() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillPrivateMaskCreditCardFunction);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_API_H_
|
|
|