| 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_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/autofill/core/common/form_data.h" | 10 #include "components/autofill/core/common/form_data.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // original request for the data. |action| is the action the renderer should | 54 // original request for the data. |action| is the action the renderer should |
| 55 // perform with the |data|. This method is a no-op if the renderer is not | 55 // perform with the |data|. This method is a no-op if the renderer is not |
| 56 // currently available. | 56 // currently available. |
| 57 virtual void SendFormDataToRenderer(int query_id, | 57 virtual void SendFormDataToRenderer(int query_id, |
| 58 RendererFormDataAction action, | 58 RendererFormDataAction action, |
| 59 const FormData& data) = 0; | 59 const FormData& data) = 0; |
| 60 | 60 |
| 61 // Pings renderer. The renderer will return an IPC acknowledging the ping. | 61 // Pings renderer. The renderer will return an IPC acknowledging the ping. |
| 62 virtual void PingRenderer() = 0; | 62 virtual void PingRenderer() = 0; |
| 63 | 63 |
| 64 // Pass the form structures to the password generation manager to detect | 64 // Pass the form structures to the password manager to choose correct username |
| 65 // account creation forms. | 65 // and to the password generation manager to detect account creation forms. |
| 66 virtual void DetectAccountCreationForms( | 66 virtual void PropagateAutofillPredictions( |
| 67 const std::vector<autofill::FormStructure*>& forms) = 0; | 67 const std::vector<autofill::FormStructure*>& forms) = 0; |
| 68 | 68 |
| 69 // Sends the field type predictions specified in |forms| to the renderer. This | 69 // Sends the field type predictions specified in |forms| to the renderer. This |
| 70 // method is a no-op if the renderer is not available or the appropriate | 70 // method is a no-op if the renderer is not available or the appropriate |
| 71 // command-line flag is not set. | 71 // command-line flag is not set. |
| 72 virtual void SendAutofillTypePredictionsToRenderer( | 72 virtual void SendAutofillTypePredictionsToRenderer( |
| 73 const std::vector<FormStructure*>& forms) = 0; | 73 const std::vector<FormStructure*>& forms) = 0; |
| 74 | 74 |
| 75 // Tells the renderer to accept data list suggestions for |value|. | 75 // Tells the renderer to accept data list suggestions for |value|. |
| 76 virtual void RendererShouldAcceptDataListSuggestion( | 76 virtual void RendererShouldAcceptDataListSuggestion( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 90 virtual void RendererShouldPreviewFieldWithValue( | 90 virtual void RendererShouldPreviewFieldWithValue( |
| 91 const base::string16& value) = 0; | 91 const base::string16& value) = 0; |
| 92 | 92 |
| 93 // Informs the renderer that the popup has been hidden. | 93 // Informs the renderer that the popup has been hidden. |
| 94 virtual void PopupHidden() = 0; | 94 virtual void PopupHidden() = 0; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace autofill | 97 } // namespace autofill |
| 98 | 98 |
| 99 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ | 99 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_ |
| OLD | NEW |