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

Unified Diff: android_webview/browser/aw_contents.h

Issue 2745803003: autofill-try
Patch Set: autofill-try 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
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_contents.h
diff --git a/android_webview/browser/aw_contents.h b/android_webview/browser/aw_contents.h
index f6db4328d81b614c62e70caef7d386af97588892..cce88ca864aaee8840390e07d47a6048363f1cc9 100644
--- a/android_webview/browser/aw_contents.h
+++ b/android_webview/browser/aw_contents.h
@@ -35,6 +35,10 @@
class SkBitmap;
class TabContents;
+namespace autofill {
+class AutofillProvider;
+}
+
namespace content {
class WebContents;
}
@@ -106,8 +110,8 @@ class AwContents : public FindHelper::Listener,
const base::android::JavaParamRef<jobject>& web_contents_delegate,
const base::android::JavaParamRef<jobject>& contents_client_bridge,
const base::android::JavaParamRef<jobject>& io_thread_client,
- const base::android::JavaParamRef<jobject>&
- intercept_navigation_delegate);
+ const base::android::JavaParamRef<jobject>& intercept_navigation_delegate,
+ const base::android::JavaParamRef<jobject>& autofill_provider);
base::android::ScopedJavaLocalRef<jobject> GetWebContents(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
@@ -354,6 +358,9 @@ class AwContents : public FindHelper::Listener,
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
+ jlong GetAutofillProvider(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj);
+
// content::WebContentsObserver overrides
void RenderViewHostChanged(content::RenderViewHost* old_host,
content::RenderViewHost* new_host) override;
@@ -378,7 +385,7 @@ class AwContents : public FindHelper::Listener,
bool OnRenderProcessGoneDetail(int child_process_id, bool crashed) override;
private:
- void InitAutofillIfNecessary(bool enabled);
+ void InitAutofillIfNecessary(bool autocomplete_enabled);
// Geolocation API support
void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
@@ -406,6 +413,7 @@ class AwContents : public FindHelper::Listener,
std::unique_ptr<AwContents> pending_contents_;
std::unique_ptr<AwPdfExporter> pdf_exporter_;
std::unique_ptr<PermissionRequestHandler> permission_request_handler_;
+ std::unique_ptr<autofill::AutofillProvider> autofill_provider_;
// GURL is supplied by the content layer as requesting frame.
// Callback is supplied by the content layer, and is invoked with the result
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698