| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTENT_AUTOFILL_DRIVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } | 91 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 // Sets the manager to |manager| and sets |manager|'s external delegate | 94 // Sets the manager to |manager| and sets |manager|'s external delegate |
| 95 // to |autofill_external_delegate_|. Takes ownership of |manager|. | 95 // to |autofill_external_delegate_|. Takes ownership of |manager|. |
| 96 void SetAutofillManager(std::unique_ptr<AutofillManager> manager); | 96 void SetAutofillManager(std::unique_ptr<AutofillManager> manager); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 void ConnectToMojoAutofillAgentIfNeeded(); | 99 void ConnectToMojoAutofillAgentIfNeeded(); |
| 100 | 100 |
| 101 void DidFillAutofillFormData(const FormData& filled, int64_t timestamp); |
| 102 |
| 101 // Weak ref to the RenderFrameHost the driver is associated with. Should | 103 // Weak ref to the RenderFrameHost the driver is associated with. Should |
| 102 // always be non-NULL and valid for lifetime of |this|. | 104 // always be non-NULL and valid for lifetime of |this|. |
| 103 content::RenderFrameHost* const render_frame_host_; | 105 content::RenderFrameHost* const render_frame_host_; |
| 104 | 106 |
| 105 // The per-tab client. | 107 // The per-tab client. |
| 106 AutofillClient* client_; | 108 AutofillClient* client_; |
| 107 | 109 |
| 108 // AutofillManager instance via which this object drives the shared Autofill | 110 // AutofillManager instance via which this object drives the shared Autofill |
| 109 // code. | 111 // code. |
| 110 std::unique_ptr<AutofillManager> autofill_manager_; | 112 std::unique_ptr<AutofillManager> autofill_manager_; |
| 111 | 113 |
| 112 // AutofillExternalDelegate instance that this object instantiates in the | 114 // AutofillExternalDelegate instance that this object instantiates in the |
| 113 // case where the Autofill native UI is enabled. | 115 // case where the Autofill native UI is enabled. |
| 114 AutofillExternalDelegate autofill_external_delegate_; | 116 AutofillExternalDelegate autofill_external_delegate_; |
| 115 | 117 |
| 116 mojo::BindingSet<mojom::AutofillDriver> bindings_; | 118 mojo::BindingSet<mojom::AutofillDriver> bindings_; |
| 117 | 119 |
| 118 mojom::AutofillAgentPtr mojo_autofill_agent_; | 120 mojom::AutofillAgentPtr mojo_autofill_agent_; |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace autofill | 123 } // namespace autofill |
| 122 | 124 |
| 123 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ | 125 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ |
| OLD | NEW |