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

Unified Diff: components/autofill/core/browser/autofill_manager.h

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: fix coordinates Created 3 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/core/browser/autofill_manager.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index c8597275741e5c61a8aeeabfdd57a72a710d78b0..31e3f86e2e7d2b68070e5cd6cf0ec76013b577c7 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -60,6 +60,7 @@ class AutofillField;
class AutofillClient;
class AutofillManagerTestDelegate;
class AutofillProfile;
+class AutofillProvider;
class AutofillType;
class CreditCard;
class FormStructureBrowserTest;
@@ -88,7 +89,8 @@ class AutofillManager : public AutofillDownloadManager::Observer,
AutofillManager(AutofillDriver* driver,
AutofillClient* client,
const std::string& app_locale,
- AutofillDownloadManagerState enable_download_manager);
+ AutofillDownloadManagerState enable_download_manager,
+ AutofillProvider* provider);
~AutofillManager() override;
// Sets an external delegate.
@@ -162,6 +164,10 @@ class AutofillManager : public AutofillDownloadManager::Observer,
return weak_ptr_factory_.GetWeakPtr();
}
+ base::WeakPtr<AutofillManager> GetWeakPtr() {
+ return weak_ptr_factory_.GetWeakPtr();
+ }
+
const std::string& app_locale() const { return app_locale_; }
// Only for testing.
@@ -229,6 +235,10 @@ class AutofillManager : public AutofillDownloadManager::Observer,
// to be uploadable. Exposed for testing.
bool ShouldUploadForm(const FormStructure& form);
+ void SendFormDataToRenderer(int query_id,
+ AutofillDriver::RendererFormDataAction action,
+ const FormData& data);
+
protected:
// Test code should prefer to use this constructor.
AutofillManager(AutofillDriver* driver,
@@ -587,6 +597,8 @@ class AutofillManager : public AutofillDownloadManager::Observer,
AutofillAssistant autofill_assistant_;
#endif
+ AutofillProvider* provider_;
+
base::WeakPtrFactory<AutofillManager> weak_ptr_factory_;
friend class AutofillManagerTest;

Powered by Google App Engine
This is Rietveld 408576698