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

Unified Diff: components/autofill/content/browser/request_autocomplete_manager.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: components/autofill/content/browser/request_autocomplete_manager.h
diff --git a/components/autofill/content/browser/request_autocomplete_manager.h b/components/autofill/content/browser/request_autocomplete_manager.h
deleted file mode 100644
index 131c242905451d24cc80e3fc35c85b75c8af989a..0000000000000000000000000000000000000000
--- a/components/autofill/content/browser/request_autocomplete_manager.h
+++ /dev/null
@@ -1,54 +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 COMPONENTS_AUTOFILL_CONTENT_BROWSER_REQUEST_AUTOCOMPLETE_MANAGER_H_
-#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_REQUEST_AUTOCOMPLETE_MANAGER_H_
-
-#include "base/callback_forward.h"
-#include "base/memory/weak_ptr.h"
-#include "components/autofill/core/browser/autofill_client.h"
-
-class GURL;
-
-namespace autofill {
-
-class ContentAutofillDriver;
-struct FormData;
-class FormStructure;
-
-// Driver for the requestAutocomplete flow.
-class RequestAutocompleteManager {
- public:
- explicit RequestAutocompleteManager(ContentAutofillDriver* autofill_driver);
- ~RequestAutocompleteManager();
-
- // Requests an interactive autocomplete UI to be shown for the associated
- // frame.
- void OnRequestAutocomplete(const FormData& form);
-
- private:
- // Tells the renderer that the current interactive autocomplete dialog
- // finished with the |result| saying if it was successful or not, and
- // |form_structure| containing the filled form data. |debug_message| will
- // be printed to the developer console.
- void ReturnAutocompleteResult(
- AutofillClient::RequestAutocompleteResult result,
- const base::string16& debug_message,
- const FormStructure* form_structure);
-
- // Shows the requestAutocomplete dialog for |source_url| with data from |form|
- // and calls |callback| once the interaction is complete.
- void ShowRequestAutocompleteDialog(
- const FormData& form,
- const AutofillClient::ResultCallback& callback);
-
- // The autofill driver owns and outlives |this|.
- ContentAutofillDriver* const autofill_driver_; // weak.
-
- base::WeakPtrFactory<RequestAutocompleteManager> weak_ptr_factory_;
-};
-
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_REQUEST_AUTOCOMPLETE_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698