Index: chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h |
diff --git a/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h b/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8914831e81336727eb707028bb3faaa96e95227b |
--- /dev/null |
+++ b/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h |
@@ -0,0 +1,47 @@ |
+// Copyright 2014 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_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_ |
+#define CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_ |
+ |
+#include <jni.h> |
+ |
+#include "base/android/jni_string.h" |
+#include "base/android/scoped_java_ref.h" |
+#include "base/strings/string16.h" |
+#include "chrome/browser/ui/autofill/instrument_unmask_prompt_view.h" |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+namespace autofill { |
+ |
+class InstrumentUnmaskPromptViewAndroid : public InstrumentUnmaskPromptView { |
+ public: |
+ InstrumentUnmaskPromptViewAndroid(content::WebContents* web_contents, |
+ const UnmaskCallback& finished); |
+ |
+ void Show(); |
+ |
+ void PromptDismissed(JNIEnv* env, jobject obj, jstring response); |
+ |
+ static bool Register(JNIEnv* env); |
+ |
+ private: |
+ virtual ~InstrumentUnmaskPromptViewAndroid(); |
+ |
+ // The corresponding java object. |
+ base::android::ScopedJavaGlobalRef<jobject> java_object_; |
+ |
+ content::WebContents* web_contents_; |
+ UnmaskCallback finished_; |
+ base::string16 response_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(InstrumentUnmaskPromptViewAndroid); |
+}; |
+ |
+} // namespace autofill |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_ |