| OLD | NEW |
| (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_ | |
| OLD | NEW |