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

Side by Side Diff: chrome/browser/autofill/android/personal_data_manager_android.h

Issue 2829903004: Reland: Normalize shipping address for merchant on Desktop. (Closed)
Patch Set: Make android code use the new impl Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/autofill/core/browser/personal_data_manager.h" 12 #include "components/autofill/core/browser/personal_data_manager.h"
13 #include "components/autofill/core/browser/personal_data_manager_observer.h" 13 #include "components/autofill/core/browser/personal_data_manager_observer.h"
14 #include "components/payments/core/address_normalizer.h" 14 #include "components/payments/core/address_normalizer_impl.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 17
18 // Android wrapper of the PersonalDataManager which provides access from the 18 // Android wrapper of the PersonalDataManager which provides access from the
19 // Java layer. Note that on Android, there's only a single profile, and 19 // Java layer. Note that on Android, there's only a single profile, and
20 // therefore a single instance of this wrapper. 20 // therefore a single instance of this wrapper.
21 class PersonalDataManagerAndroid : public PersonalDataManagerObserver { 21 class PersonalDataManagerAndroid : public PersonalDataManagerObserver {
22 public: 22 public:
23 // Registers the JNI bindings for this class. 23 // Registers the JNI bindings for this class.
24 static bool Register(JNIEnv* env); 24 static bool Register(JNIEnv* env);
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 const base::android::JavaParamRef<jobject>& jprofile, 353 const base::android::JavaParamRef<jobject>& jprofile,
354 bool inlude_country_in_label); 354 bool inlude_country_in_label);
355 355
356 // Pointer to the java counterpart. 356 // Pointer to the java counterpart.
357 JavaObjectWeakGlobalRef weak_java_obj_; 357 JavaObjectWeakGlobalRef weak_java_obj_;
358 358
359 // Pointer to the PersonalDataManager for the main profile. 359 // Pointer to the PersonalDataManager for the main profile.
360 PersonalDataManager* personal_data_manager_; 360 PersonalDataManager* personal_data_manager_;
361 361
362 // The address validator used to normalize addresses. 362 // The address validator used to normalize addresses.
363 payments::AddressNormalizer address_normalizer_; 363 payments::AddressNormalizerImpl address_normalizer_;
364 364
365 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 365 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
366 }; 366 };
367 367
368 } // namespace autofill 368 } // namespace autofill
369 369
370 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 370 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698