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" |
11 #include "components/autofill/core/browser/autofill_external_delegate.h" | 11 #include "components/autofill/core/browser/autofill_external_delegate.h" |
12 #include "components/autofill/core/browser/autofill_manager.h" | 12 #include "components/autofill/core/browser/autofill_manager.h" |
13 #include "components/autofill/core/browser/form_structure.h" | 13 #include "components/autofill/core/browser/form_structure.h" |
| 14 #include "components/autofill/core/common/autofill_constants.h" |
14 #include "components/autofill/core/common/autofill_switches.h" | 15 #include "components/autofill/core/common/autofill_switches.h" |
15 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
18 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
19 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
21 #include "content/public/common/frame_navigate_params.h" | 22 #include "content/public/common/frame_navigate_params.h" |
22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
23 | 24 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 226 |
226 void ContentAutofillDriver::NavigationEntryCommitted( | 227 void ContentAutofillDriver::NavigationEntryCommitted( |
227 const content::LoadCommittedDetails& load_details) { | 228 const content::LoadCommittedDetails& load_details) { |
228 autofill_manager_->client()->HideAutofillPopup(); | 229 autofill_manager_->client()->HideAutofillPopup(); |
229 } | 230 } |
230 | 231 |
231 void ContentAutofillDriver::WasHidden() { | 232 void ContentAutofillDriver::WasHidden() { |
232 autofill_manager_->client()->HideAutofillPopup(); | 233 autofill_manager_->client()->HideAutofillPopup(); |
233 } | 234 } |
234 | 235 |
| 236 void ContentAutofillDriver::LinkClicked(const GURL& url, |
| 237 WindowOpenDisposition disposition) { |
| 238 web_contents()->OpenURL(content::OpenURLParams( |
| 239 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); |
| 240 } |
| 241 |
235 } // namespace autofill | 242 } // namespace autofill |
OLD | NEW |