Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more Android fix Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698