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

Unified Diff: chrome/browser/autofill/auxiliary_profile_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: Android Autofill Populator 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_impl_android.h
diff --git a/chrome/browser/autofill/auxiliary_profile_impl_android.h b/chrome/browser/autofill/auxiliary_profile_impl_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdcec076555d0458f853c80b28f846377e252a70
--- /dev/null
+++ b/chrome/browser/autofill/auxiliary_profile_impl_android.h
@@ -0,0 +1,40 @@
+// 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_IMPL_ANDROID_H_
+#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_
+
+#include <jni.h>
+#include "base/guid.h"
+#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
+#include "base/string16.h"
+#include "base/utf_string_conversions.h"
+#include "chrome/browser/autofill/autofill_profile.h"
+#include "chrome/browser/autofill/i_auxiliary_profile_loader.h"
+
+class AuxiliaryProfilesImpl {
+ public:
+ AuxiliaryProfilesImpl(ScopedVector<AutofillProfile>* profiles,
+ IAuxiliaryProfileLoader* profileLoader)
+ : profiles_(*profiles), profileLoader_(*profileLoader) {}
+
+ void GetContactsProfile();
+
+ private:
+ string16 CollapseAddress(string16 pobox,
+ string16 neighborhood);
+ void LoadAddress(AutofillProfile* profile);
+ void LoadName(AutofillProfile* profile);
+ void LoadEmailAddress(AutofillProfile* profile);
+ void LoadPhoneNumbers(AutofillProfile* profile);
+ private:
+ ScopedVector<AutofillProfile>& profiles_;
+ IAuxiliaryProfileLoader& profileLoader_;
+
+ DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfilesImpl);
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698