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

Unified Diff: chrome/browser/autofill/auxiliary_profile_loader_impl_android.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Autofill nits Created 7 years, 10 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: chrome/browser/autofill/auxiliary_profile_loader_impl_android.h
diff --git a/chrome/browser/autofill/auxiliary_profile_loader_impl_android.h b/chrome/browser/autofill/auxiliary_profile_loader_impl_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..7dccf7e905a0306f73ee7e7fc3b1b4ee483481aa
--- /dev/null
+++ b/chrome/browser/autofill/auxiliary_profile_loader_impl_android.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 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_AUTOFILL_AUXILIARY_PROFILE_LOADER_IMPL_ANDROID_H_
+#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_IMPL_ANDROID_H_
+
+#include "base/android/jni_android.h"
+#include "chrome/browser/autofill/auxiliary_profile_loader.h"
+
+bool RegisterAuxiliaryProfileLoader(JNIEnv* env);
Ilya Sherman 2013/03/01 01:55:04 nit: Docs.
apiccion 2013/03/02 03:37:01 Done.
+
+class AuxiliaryProfileLoaderImplAndroid : public AuxiliaryProfileLoader {
Ilya Sherman 2013/03/01 01:55:04 Why have the parent class if there's only one impl
Ilya Sherman 2013/03/01 01:55:04 nit: Docs.
apiccion 2013/03/02 03:37:01 It's an abstract interface. On 2013/03/01 01:55:04
+ public:
+ explicit AuxiliaryProfileLoaderImplAndroid();
Ilya Sherman 2013/03/01 01:55:04 nit: No need for explicit.
Ilya Sherman 2013/03/01 01:55:04 nit: Include an explicitly defined destructor.
apiccion 2013/03/02 03:37:01 Done.
+
+ // AuxiliaryProfileLoader implementation
+ virtual string16 GetStreet() OVERRIDE;
+ virtual string16 GetPobox() OVERRIDE;
+ virtual string16 GetNeighborhood() OVERRIDE;
+ virtual string16 GetRegion() OVERRIDE;
+ virtual string16 GetCity() OVERRIDE;
+ virtual string16 GetPostalCode() OVERRIDE;
+ virtual string16 GetCountry() OVERRIDE;
+ virtual string16 GetFirstName() OVERRIDE;
+ virtual string16 GetMiddleName() OVERRIDE;
+ virtual string16 GetLastName() OVERRIDE;
+ virtual string16 GetSuffix() OVERRIDE;
+ virtual std::vector<string16> GetEmailAddresses() OVERRIDE;
+ virtual std::vector<string16> GetPhoneNumbers() OVERRIDE;
+
+ private:
+ base::android::ScopedJavaLocalRef<jobject> populator_;
Ilya Sherman 2013/03/01 01:55:04 nit: Docs.
apiccion 2013/03/02 03:37:01 Done.
+ JNIEnv* env_;
Ilya Sherman 2013/03/01 01:55:04 nit: Docs.
apiccion 2013/03/02 03:37:01 Done.
+ DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfileLoaderImplAndroid);
+};
+#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_IMPL_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698