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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
11 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 11 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
| 12 #include "components/autofill/content/common/autofill_messages.h" |
12 #include "components/autofill/core/browser/autofill_client.h" | 13 #include "components/autofill/core/browser/autofill_client.h" |
13 #include "components/autofill/core/browser/autofill_external_delegate.h" | 14 #include "components/autofill/core/browser/autofill_external_delegate.h" |
14 #include "components/autofill/core/browser/autofill_manager.h" | 15 #include "components/autofill/core/browser/autofill_manager.h" |
15 #include "components/autofill/core/browser/form_structure.h" | 16 #include "components/autofill/core/browser/form_structure.h" |
16 #include "components/autofill/core/common/autofill_switches.h" | 17 #include "components/autofill/core/common/autofill_switches.h" |
17 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/navigation_controller.h" | 20 #include "content/public/browser/navigation_controller.h" |
20 #include "content/public/browser/navigation_details.h" | 21 #include "content/public/browser/navigation_details.h" |
21 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 autofill_manager_ = std::move(manager); | 247 autofill_manager_ = std::move(manager); |
247 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); | 248 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); |
248 } | 249 } |
249 | 250 |
250 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { | 251 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { |
251 GetAutofillAgent()->FirstUserGestureObservedInTab(); | 252 GetAutofillAgent()->FirstUserGestureObservedInTab(); |
252 } | 253 } |
253 | 254 |
254 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { | 255 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { |
255 // Here is a lazy binding, and will not reconnect after connection error. | 256 // Here is a lazy binding, and will not reconnect after connection error. |
256 if (!autofill_agent_) { | 257 if (!mojo_autofill_agent_) { |
257 render_frame_host_->GetRemoteInterfaces()->GetInterface( | 258 render_frame_host_->GetRemoteInterfaces()->GetInterface( |
258 mojo::GetProxy(&autofill_agent_)); | 259 mojo::GetProxy(&mojo_autofill_agent_)); |
259 } | 260 } |
260 | 261 |
261 return autofill_agent_; | 262 return mojo_autofill_agent_; |
262 } | 263 } |
263 | 264 |
264 } // namespace autofill | 265 } // namespace autofill |
OLD | NEW |