OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 autofill::AutofillManagerDelegate* delegate, | 42 autofill::AutofillManagerDelegate* delegate, |
43 const std::string& app_locale, | 43 const std::string& app_locale, |
44 AutofillManager::AutofillDownloadManagerState enable_download_manager); | 44 AutofillManager::AutofillDownloadManagerState enable_download_manager); |
45 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); | 45 static AutofillDriverImpl* FromWebContents(content::WebContents* contents); |
46 | 46 |
47 // AutofillDriver: | 47 // AutofillDriver: |
48 virtual content::WebContents* GetWebContents() OVERRIDE; | 48 virtual content::WebContents* GetWebContents() OVERRIDE; |
49 virtual bool RendererIsAvailable() OVERRIDE; | 49 virtual bool RendererIsAvailable() OVERRIDE; |
50 virtual void SendFormDataToRenderer(int query_id, | 50 virtual void SendFormDataToRenderer(int query_id, |
51 const FormData& data) OVERRIDE; | 51 const FormData& data) OVERRIDE; |
| 52 virtual void SendAutofillTypePredictionsToRenderer( |
| 53 const std::vector<FormStructure*>& forms) OVERRIDE; |
52 | 54 |
53 AutofillExternalDelegate* autofill_external_delegate() { | 55 AutofillExternalDelegate* autofill_external_delegate() { |
54 return autofill_external_delegate_.get(); | 56 return autofill_external_delegate_.get(); |
55 } | 57 } |
56 | 58 |
57 // Sets the external delegate to |delegate| both within this class and in the | 59 // Sets the external delegate to |delegate| both within this class and in the |
58 // shared Autofill code. Takes ownership of |delegate|. | 60 // shared Autofill code. Takes ownership of |delegate|. |
59 void SetAutofillExternalDelegate( | 61 void SetAutofillExternalDelegate( |
60 scoped_ptr<AutofillExternalDelegate> delegate); | 62 scoped_ptr<AutofillExternalDelegate> delegate); |
61 | 63 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 95 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
94 | 96 |
95 // AutofillManager instance via which this object drives the shared Autofill | 97 // AutofillManager instance via which this object drives the shared Autofill |
96 // code. | 98 // code. |
97 scoped_ptr<AutofillManager> autofill_manager_; | 99 scoped_ptr<AutofillManager> autofill_manager_; |
98 }; | 100 }; |
99 | 101 |
100 } // namespace autofill | 102 } // namespace autofill |
101 | 103 |
102 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ | 104 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_DRIVER_IMPL_H_ |
OLD | NEW |