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

Unified Diff: chrome/browser/autofill/auxiliary_profile_loader.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.h
diff --git a/chrome/browser/autofill/auxiliary_profile_loader.h b/chrome/browser/autofill/auxiliary_profile_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba73fbb40ddbc2cd81128eee4fb3895640f20f4f
--- /dev/null
+++ b/chrome/browser/autofill/auxiliary_profile_loader.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_H_
+#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_H_
Ilya Sherman 2013/03/01 01:55:04 Is this class used for any platforms other than An
apiccion 2013/03/02 03:37:01 Done.
+
+#include <vector>
Ilya Sherman 2013/03/01 01:55:04 nit: Leave a blank line after this one.
apiccion 2013/03/02 03:37:01 Done.
+#include "base/string16.h"
+
+class AuxiliaryProfileLoader {
Ilya Sherman 2013/03/01 01:55:04 nit: Docs.
Ilya Sherman 2013/03/01 01:55:04 nit: This class should be in the autofill:: namesp
apiccion 2013/03/02 03:37:01 Done.
+ public:
+ virtual ~AuxiliaryProfileLoader() {}
+
+ // Address info
Ilya Sherman 2013/03/01 01:55:04 nit: Please include docs for each method in this c
apiccion 2013/03/02 03:37:01 Done.
apiccion 2013/03/02 03:37:01 Done.
+ virtual string16 GetStreet() = 0;
Ilya Sherman 2013/03/01 01:55:04 nit: Should this and all of the other Get() method
apiccion 2013/03/02 03:37:01 Done.
apiccion 2013/03/02 03:37:01 Done.
+ virtual string16 GetPobox() = 0;
Ilya Sherman 2013/03/01 01:55:04 nit: Please spell out "GetPostOfficeBox()"
apiccion 2013/03/02 03:37:01 Done.
+ virtual string16 GetNeighborhood() = 0;
Ilya Sherman 2013/03/01 01:55:04 nit: I have no idea what this method returns. Thi
apiccion 2013/03/02 03:37:01 Done.
+ virtual string16 GetRegion() = 0;
+ virtual string16 GetCity() = 0;
+ virtual string16 GetPostalCode() = 0;
+ virtual string16 GetCountry() = 0;
+
+ // Name info
+ virtual string16 GetFirstName() = 0;
+ virtual string16 GetMiddleName() = 0;
+ virtual string16 GetLastName() = 0;
+ virtual string16 GetSuffix() = 0;
+
+ // Email info
+ virtual std::vector<string16> GetEmailAddresses() = 0;
Ilya Sherman 2013/03/01 01:55:04 nit: Please make this method signature be virtual
apiccion 2013/03/02 03:37:01 Done.
+
+ // Phone info
+ virtual std::vector<string16> GetPhoneNumbers() = 0;
Ilya Sherman 2013/03/01 01:55:04 nit: Ditto: use an outparam rather than returning
apiccion 2013/03/02 03:37:01 Done.
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698