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

Side by Side Diff: android_webview/browser/aw_autofill_external_delegate.h

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: make personal_data_ optional Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_EXTERNAL_DELEGATE_H_
7
8 #include "components/autofill/browser/autofill_external_delegate.h"
9
10
11 namespace content {
12 class WebContents;
13 }
14
15 namespace autofill {
16 class AutofillManager;
17 }
18
19 namespace android_webview {
20
21 // External delegate for android webview autocomplete. Its main functionality
22 // is to enable/disable the feature for a given webcontents.
23 class AwAutofillExternalDelegate
24 : public autofill::AutofillExternalDelegate {
25
26 public:
27 // Creates an AwAutofillExternalDelegate and attaches it to the specified
28 // contents; the second argument is an AutofillManager managing Autofill for
29 // that WebContents.
30 static void CreateForWebContentsAndManager(
31 content::WebContents* web_contents,
32 autofill::AutofillManager* autofill_manager);
33
34 virtual bool ShouldIgnoreFormData() OVERRIDE;
35
36 protected:
37 AwAutofillExternalDelegate(content::WebContents* web_contents,
38 autofill::AutofillManager* autofill_manager);
39 virtual ~AwAutofillExternalDelegate();
40
41 private:
42 DISALLOW_COPY_AND_ASSIGN(AwAutofillExternalDelegate);
43 };
44
45 } // namespace android_webview
46
47 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698