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

Unified Diff: chrome/browser/autofill/auxiliary_profile_loader_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: Rebased 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_android.h
diff --git a/chrome/browser/autofill/auxiliary_profile_loader_android.h b/chrome/browser/autofill/auxiliary_profile_loader_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d151aa6b067c70f27466a88c7acc8cde49fd202
--- /dev/null
+++ b/chrome/browser/autofill/auxiliary_profile_loader_android.h
@@ -0,0 +1,42 @@
+// 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_ANDROID_H_
+#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_ANDROID_H_
+
+#include "base/android/jni_android.h"
+#include "chrome/browser/autofill/i_auxiliary_profile_loader.h"
+
+bool RegisterAuxiliaryProfileLoader(JNIEnv* env);
+
+class AuxiliaryProfileLoaderAndroid : public IAuxiliaryProfileLoader {
David Trainor- moved to gerrit 2013/02/27 07:49:28 disallow copy and assign macro
apiccion 2013/02/28 01:31:04 Done.
apiccion 2013/02/28 01:31:04 Done.
+ public:
+ explicit AuxiliaryProfileLoaderAndroid();
+
+ // Address info
David Trainor- moved to gerrit 2013/02/27 07:49:28 Don't need these comments. Need something like: /
apiccion 2013/02/28 01:31:04 Done.
+ virtual string16 GetStreet();
David Trainor- moved to gerrit 2013/02/27 07:49:28 Add OVERRIDE to the end of every overridden method
apiccion 2013/02/28 01:31:04 Done.
+ virtual string16 GetPobox();
+ virtual string16 GetNeighborhood();
+ virtual string16 GetRegion();
+ virtual string16 GetCity();
+ virtual string16 GetPostalCode();
+ virtual string16 GetCountry();
+
+ // Name info
+ virtual string16 GetFirstName();
+ virtual string16 GetMiddleName();
+ virtual string16 GetLastName();
+ virtual string16 GetSuffix();
+
+ // Email info
+ virtual std::vector<string16> GetEmailAddresses();
+
+ // Phone info
+ virtual std::vector<string16> GetPhoneNumbers();
+
+ private:
+ base::android::ScopedJavaLocalRef<jobject> populator_;
+ JNIEnv* env_;
+};
+#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698