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 #include "components/autofill/content/browser/content_autofill_driver.h" | 5 #include "components/autofill/content/browser/content_autofill_driver.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 #include "components/autofill/content/common/autofill_messages.h" | 9 #include "components/autofill/content/common/autofill_messages.h" |
10 #include "components/autofill/core/browser/autofill_client.h" | 10 #include "components/autofill/core/browser/autofill_client.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 AutofillManager::OnDidEndTextFieldEditing) | 176 AutofillManager::OnDidEndTextFieldEditing) |
177 IPC_MESSAGE_FORWARD(AutofillHostMsg_HidePopup, | 177 IPC_MESSAGE_FORWARD(AutofillHostMsg_HidePopup, |
178 autofill_manager_.get(), | 178 autofill_manager_.get(), |
179 AutofillManager::OnHidePopup) | 179 AutofillManager::OnHidePopup) |
180 IPC_MESSAGE_FORWARD(AutofillHostMsg_SetDataList, | 180 IPC_MESSAGE_FORWARD(AutofillHostMsg_SetDataList, |
181 autofill_manager_.get(), | 181 autofill_manager_.get(), |
182 AutofillManager::OnSetDataList) | 182 AutofillManager::OnSetDataList) |
183 IPC_MESSAGE_FORWARD(AutofillHostMsg_RequestAutocomplete, | 183 IPC_MESSAGE_FORWARD(AutofillHostMsg_RequestAutocomplete, |
184 &request_autocomplete_manager_, | 184 &request_autocomplete_manager_, |
185 RequestAutocompleteManager::OnRequestAutocomplete) | 185 RequestAutocompleteManager::OnRequestAutocomplete) |
186 IPC_MESSAGE_FORWARD(AutofillHostMsg_CancelRequestAutocomplete, | |
187 &request_autocomplete_manager_, | |
188 RequestAutocompleteManager::OnCancelRequestAutocomplete) | |
189 IPC_MESSAGE_UNHANDLED(handled = false) | 186 IPC_MESSAGE_UNHANDLED(handled = false) |
190 IPC_END_MESSAGE_MAP() | 187 IPC_END_MESSAGE_MAP() |
191 return handled; | 188 return handled; |
192 } | 189 } |
193 | 190 |
194 void ContentAutofillDriver::DidNavigateFrame( | 191 void ContentAutofillDriver::DidNavigateFrame( |
195 const content::LoadCommittedDetails& details, | 192 const content::LoadCommittedDetails& details, |
196 const content::FrameNavigateParams& params) { | 193 const content::FrameNavigateParams& params) { |
197 if (details.is_navigation_to_different_page()) | 194 if (details.is_navigation_to_different_page()) |
198 autofill_manager_->Reset(); | 195 autofill_manager_->Reset(); |
199 } | 196 } |
200 | 197 |
201 void ContentAutofillDriver::SetAutofillManager( | 198 void ContentAutofillDriver::SetAutofillManager( |
202 scoped_ptr<AutofillManager> manager) { | 199 scoped_ptr<AutofillManager> manager) { |
203 autofill_manager_ = manager.Pass(); | 200 autofill_manager_ = manager.Pass(); |
204 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); | 201 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); |
205 } | 202 } |
206 | 203 |
207 } // namespace autofill | 204 } // namespace autofill |
OLD | NEW |