| Index: components/autofill/core/browser/autofill_client.h
|
| diff --git a/components/autofill/core/browser/autofill_manager_delegate.h b/components/autofill/core/browser/autofill_client.h
|
| similarity index 86%
|
| rename from components/autofill/core/browser/autofill_manager_delegate.h
|
| rename to components/autofill/core/browser/autofill_client.h
|
| index f704e2ae7f9e843398ea3098664448421af039aa..da2c60e1bfa3f5210dbfa507bd465aa3cdc13a1d 100644
|
| --- a/components/autofill/core/browser/autofill_manager_delegate.h
|
| +++ b/components/autofill/core/browser/autofill_client.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
|
| -#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
|
| +#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
|
| +#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
|
|
|
| #include <vector>
|
|
|
| @@ -41,22 +41,21 @@ struct PasswordForm;
|
| // say "for the delegate" below, we mean "in the execution context the
|
| // delegate is associated with" (e.g. for the tab the AutofillManager is
|
| // attached to).
|
| -class AutofillManagerDelegate {
|
| +class AutofillClient {
|
| public:
|
| // Copy of blink::WebFormElement::AutocompleteResult.
|
| enum RequestAutocompleteResult {
|
| - AutocompleteResultSuccess,
|
| - AutocompleteResultErrorDisabled,
|
| - AutocompleteResultErrorCancel,
|
| - AutocompleteResultErrorInvalid,
|
| + AutocompleteResultSuccess,
|
| + AutocompleteResultErrorDisabled,
|
| + AutocompleteResultErrorCancel,
|
| + AutocompleteResultErrorInvalid,
|
| };
|
|
|
| - typedef base::Callback<
|
| - void(RequestAutocompleteResult,
|
| - const base::string16&,
|
| - const FormStructure*)> ResultCallback;
|
| + typedef base::Callback<void(RequestAutocompleteResult,
|
| + const base::string16&,
|
| + const FormStructure*)> ResultCallback;
|
|
|
| - virtual ~AutofillManagerDelegate() {}
|
| + virtual ~AutofillClient() {}
|
|
|
| // Gets the PersonalDataManager instance associated with the delegate.
|
| virtual PersonalDataManager* GetPersonalDataManager() = 0;
|
| @@ -117,9 +116,8 @@ class AutofillManagerDelegate {
|
| virtual void DidFillOrPreviewField(
|
| const base::string16& autofilled_value,
|
| const base::string16& profile_full_name) = 0;
|
| -
|
| };
|
|
|
| } // namespace autofill
|
|
|
| -#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_DELEGATE_H_
|
| +#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
|
|
|