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

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

Issue 14564003: Make PersonalDataManager use GetCreditCards() (rather than using credit_cards_ directly) so Autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autofill/android/personal_data_manager_android.cc » ('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_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "components/autofill/browser/personal_data_manager.h" 10 #include "components/autofill/browser/personal_data_manager.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 jobject unused_obj, 47 jobject unused_obj,
48 jobject jprofile); 48 jobject jprofile);
49 49
50 // Credit Card Profiles 50 // Credit Card Profiles
51 // -------------------- 51 // --------------------
52 52
53 // Returns the number of credit cards. 53 // Returns the number of credit cards.
54 jint GetCreditCardCount(JNIEnv* unused_env, jobject unused_obj); 54 jint GetCreditCardCount(JNIEnv* unused_env, jobject unused_obj);
55 55
56 // Returns the credit card as indexed by |index| in the PersonalDataManager's 56 // Returns the credit card as indexed by |index| in the PersonalDataManager's
57 // |credit_cards()| collection. 57 // |GetCreditCards()| collection.
58 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByIndex( 58 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByIndex(
59 JNIEnv* env, 59 JNIEnv* env,
60 jobject unused_obj, 60 jobject unused_obj,
61 jint index); 61 jint index);
62 62
63 // Returns the credit card with the specified |jguid|, or NULL if there is 63 // Returns the credit card with the specified |jguid|, or NULL if there is
64 // no credit card with the specified |jguid|. 64 // no credit card with the specified |jguid|.
65 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByGUID( 65 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByGUID(
66 JNIEnv* env, 66 JNIEnv* env,
67 jobject unused_obj, 67 jobject unused_obj,
(...skipping 24 matching lines...) Expand all
92 92
93 // Pointer to the PersonalDataManager for the main profile. 93 // Pointer to the PersonalDataManager for the main profile.
94 PersonalDataManager* personal_data_manager_; 94 PersonalDataManager* personal_data_manager_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
97 }; 97 };
98 98
99 } // namespace autofill 99 } // namespace autofill
100 100
101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/android/personal_data_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698