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

Unified Diff: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h
diff --git a/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h b/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h
deleted file mode 100644
index 9c40f0c7544ae6a027eccea9f2669effb7fd051d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// Copyright 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_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_
-#define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_
-
-#include <jni.h>
-
-#include "base/android/jni_string.h"
-#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
-#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
-#include "components/autofill/core/browser/autofill_client.h"
-#include "components/autofill/core/browser/autofill_metrics.h"
-
-class Profile;
-
-namespace autofill {
-
-// This class defines the form-filling host and JNI glue for the Java-side
-// implementation of the requestAutocomplete dialog.
-class AutofillDialogControllerAndroid : public AutofillDialogController {
- public:
- // Creates an instance of the AutofillDialogControllerAndroid.
- static base::WeakPtr<AutofillDialogController> Create(
- content::WebContents* contents,
- const FormData& form_structure,
- const GURL& source_url,
- const AutofillClient::ResultCallback& callback);
-
- ~AutofillDialogControllerAndroid() override;
-
- // AutofillDialogController implementation:
- void Show() override;
- void Hide() override;
- void TabActivated() override;
-
- // JNI bindings for Java-side AutofillDialogDelegate:
- void DialogCancel(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj);
- void DialogContinue(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj,
- const base::android::JavaParamRef<jobject>& full_wallet,
- jboolean last_used_choice_is_autofill,
- const base::android::JavaParamRef<jstring>& last_used_account_name,
- const base::android::JavaParamRef<jstring>& last_used_billing,
- const base::android::JavaParamRef<jstring>& last_used_shipping,
- const base::android::JavaParamRef<jstring>& last_used_credit_card);
-
- // Establishes JNI bindings.
- static bool RegisterAutofillDialogControllerAndroid(JNIEnv* env);
-
- private:
- AutofillDialogControllerAndroid(
- content::WebContents* contents,
- const FormData& form_structure,
- const GURL& source_url,
- const AutofillClient::ResultCallback& callback);
-
- // Logs metrics when the dialog is submitted.
- void LogOnFinishSubmitMetrics();
-
- // Logs metrics when the dialog is canceled.
- void LogOnCancelMetrics();
-
- // The |profile| for |contents_|.
- Profile* const profile_;
-
- // The WebContents where the Autocomplete/Checkout action originated.
- content::WebContents* const contents_;
-
- // For logging UMA metrics.
- base::Time dialog_shown_timestamp_;
- AutofillMetrics::DialogInitialUserStateMetric initial_user_state_;
-
- FormStructure form_structure_;
-
- // Whether the URL visible to the user when this dialog was requested to be
- // invoked is the same as |source_url_|.
- bool invoked_from_same_origin_;
-
- // The URL of the invoking site.
- GURL source_url_;
-
- // The callback via which we return the collected data.
- AutofillClient::ResultCallback callback_;
-
- // Whether |form_structure_| has asked for any details that would indicate
- // we should show a shipping section.
- bool cares_about_shipping_;
-
- // Whether the latency to display to the UI was logged to UMA yet.
- bool was_ui_latency_logged_;
-
- // The corresponding java object.
- base::android::ScopedJavaGlobalRef<jobject> java_object_;
-
- base::WeakPtrFactory<AutofillDialogControllerAndroid>
- weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerAndroid);
-};
-
-} // namespace autofill
-
-#endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_ANDROID_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698