| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 jobject obj, | 25 jobject obj, |
| 26 jstring cvc, | 26 jstring cvc, |
| 27 jstring month, | 27 jstring month, |
| 28 jstring year, | 28 jstring year, |
| 29 jboolean should_store_locally); | 29 jboolean should_store_locally); |
| 30 void PromptDismissed(JNIEnv* env, jobject obj); | 30 void PromptDismissed(JNIEnv* env, jobject obj); |
| 31 | 31 |
| 32 // CardUnmaskPromptView implementation. | 32 // CardUnmaskPromptView implementation. |
| 33 void ControllerGone() override; | 33 void ControllerGone() override; |
| 34 void DisableAndWaitForVerification() override; | 34 void DisableAndWaitForVerification() override; |
| 35 void GotVerificationResult(bool success) override; | 35 void GotVerificationResult(const base::string16& error_message, |
| 36 bool allow_retry) override; |
| 36 | 37 |
| 37 static bool Register(JNIEnv* env); | 38 static bool Register(JNIEnv* env); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 ~CardUnmaskPromptViewAndroid() override; | 41 ~CardUnmaskPromptViewAndroid() override; |
| 41 | 42 |
| 42 // The corresponding java object. | 43 // The corresponding java object. |
| 43 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 44 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 44 | 45 |
| 45 CardUnmaskPromptController* controller_; | 46 CardUnmaskPromptController* controller_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); | 48 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace autofill | 51 } // namespace autofill |
| 51 | 52 |
| 52 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 53 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
| OLD | NEW |