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

Unified Diff: android_webview/native/aw_autofill_client.h

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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: android_webview/native/aw_autofill_client.h
diff --git a/android_webview/native/aw_autofill_manager_delegate.h b/android_webview/native/aw_autofill_client.h
similarity index 77%
rename from android_webview/native/aw_autofill_manager_delegate.h
rename to android_webview/native/aw_autofill_client.h
index 159ff084473e94ea66e93665e6406a4be45455ac..8958a0ec04bdbb5e9ee7fcaf75a615a3a9d34b32 100644
--- a/android_webview/native/aw_autofill_manager_delegate.h
+++ b/android_webview/native/aw_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 ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
-#define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
+#ifndef ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
+#define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
#include <jni.h>
#include <vector>
@@ -13,7 +13,7 @@
#include "base/compiler_specific.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service_factory.h"
-#include "components/autofill/core/browser/autofill_manager_delegate.h"
+#include "components/autofill/core/browser/autofill_client.h"
#include "content/public/browser/web_contents_user_data.h"
namespace autofill {
@@ -46,20 +46,18 @@ namespace android_webview {
// context, we cannot enable this feature via UserPrefs. Rather, we always
// keep the feature enabled at the pref service, and control it via
// the delegates.
-class AwAutofillManagerDelegate
- : public autofill::AutofillManagerDelegate,
- public content::WebContentsUserData<AwAutofillManagerDelegate> {
-
+class AwAutofillClient : public autofill::AutofillClient,
+ public content::WebContentsUserData<AwAutofillClient> {
public:
- virtual ~AwAutofillManagerDelegate();
+ virtual ~AwAutofillClient();
void SetSaveFormData(bool enabled);
bool GetSaveFormData();
- // AutofillManagerDelegate implementation.
+ // AutofillClient:
virtual autofill::PersonalDataManager* GetPersonalDataManager() OVERRIDE;
- virtual scoped_refptr<autofill::AutofillWebDataService>
- GetDatabase() OVERRIDE;
+ virtual scoped_refptr<autofill::AutofillWebDataService> GetDatabase()
+ OVERRIDE;
virtual PrefService* GetPrefs() OVERRIDE;
virtual void HideRequestAutocompleteDialog() OVERRIDE;
virtual void ShowAutofillSettings() OVERRIDE;
@@ -69,8 +67,7 @@ class AwAutofillManagerDelegate
virtual void ShowRequestAutocompleteDialog(
const autofill::FormData& form,
const GURL& source_url,
- const ResultCallback& callback)
- OVERRIDE;
+ const ResultCallback& callback) OVERRIDE;
virtual void ShowAutofillPopup(
const gfx::RectF& element_bounds,
base::i18n::TextDirection text_direction,
@@ -90,12 +87,11 @@ class AwAutofillManagerDelegate
const base::string16& autofilled_value,
const base::string16& profile_full_name) OVERRIDE;
- void SuggestionSelected(JNIEnv* env,
- jobject obj,
- jint position);
+ void SuggestionSelected(JNIEnv* env, jobject obj, jint position);
+
private:
- AwAutofillManagerDelegate(content::WebContents* web_contents);
- friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
+ AwAutofillClient(content::WebContents* web_contents);
+ friend class content::WebContentsUserData<AwAutofillClient>;
void ShowAutofillPopupImpl(const gfx::RectF& element_bounds,
const std::vector<base::string16>& values,
@@ -112,11 +108,11 @@ class AwAutofillManagerDelegate
std::vector<int> identifiers_;
base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
- DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
+ DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
};
-bool RegisterAwAutofillManagerDelegate(JNIEnv* env);
+bool RegisterAwAutofillClient(JNIEnv* env);
} // namespace android_webview
-#endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
+#endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698