| 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/password_manager/content/browser/content_password_manager_d
river.h" | 5 #include "components/password_manager/content/browser/content_password_manager_d
river.h" |
| 6 | 6 |
| 7 #include "components/autofill/content/browser/content_autofill_driver.h" | 7 #include "components/autofill/content/browser/content_autofill_driver.h" |
| 8 #include "components/autofill/content/common/autofill_messages.h" | 8 #include "components/autofill/content/common/autofill_messages.h" |
| 9 #include "components/autofill/core/common/form_data.h" | 9 #include "components/autofill/core/common/form_data.h" |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| 11 #include "components/password_manager/core/browser/password_manager_client.h" |
| 11 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 12 #include "content/public/browser/navigation_details.h" | 13 #include "content/public/browser/navigation_details.h" |
| 13 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 14 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 16 #include "content/public/common/page_transition_types.h" | 17 #include "content/public/common/page_transition_types.h" |
| 17 #include "content/public/common/ssl_status.h" | 18 #include "content/public/common/ssl_status.h" |
| 18 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 19 #include "net/cert/cert_status_flags.h" | 20 #include "net/cert/cert_status_flags.h" |
| 20 | 21 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 IPC_BEGIN_MESSAGE_MAP(PasswordManager, message) | 90 IPC_BEGIN_MESSAGE_MAP(PasswordManager, message) |
| 90 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsParsed, | 91 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsParsed, |
| 91 &password_manager_, | 92 &password_manager_, |
| 92 PasswordManager::OnPasswordFormsParsed) | 93 PasswordManager::OnPasswordFormsParsed) |
| 93 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsRendered, | 94 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsRendered, |
| 94 &password_manager_, | 95 &password_manager_, |
| 95 PasswordManager::OnPasswordFormsRendered) | 96 PasswordManager::OnPasswordFormsRendered) |
| 96 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormSubmitted, | 97 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormSubmitted, |
| 97 &password_manager_, | 98 &password_manager_, |
| 98 PasswordManager::OnPasswordFormSubmitted) | 99 PasswordManager::OnPasswordFormSubmitted) |
| 100 IPC_MESSAGE_FORWARD(AutofillHostMsg_RecordSavePasswordProgress, |
| 101 password_manager_.client(), |
| 102 PasswordManagerClient::LogSavePasswordProgress) |
| 99 IPC_MESSAGE_UNHANDLED(handled = false) | 103 IPC_MESSAGE_UNHANDLED(handled = false) |
| 100 IPC_END_MESSAGE_MAP() | 104 IPC_END_MESSAGE_MAP() |
| 101 | 105 |
| 102 return handled; | 106 return handled; |
| 103 } | 107 } |
| 104 | 108 |
| 105 autofill::AutofillManager* ContentPasswordManagerDriver::GetAutofillManager() { | 109 autofill::AutofillManager* ContentPasswordManagerDriver::GetAutofillManager() { |
| 106 autofill::ContentAutofillDriver* driver = | 110 autofill::ContentAutofillDriver* driver = |
| 107 autofill::ContentAutofillDriver::FromWebContents(web_contents()); | 111 autofill::ContentAutofillDriver::FromWebContents(web_contents()); |
| 108 return driver ? driver->autofill_manager() : NULL; | 112 return driver ? driver->autofill_manager() : NULL; |
| 109 } | 113 } |
| 110 | 114 |
| 111 } // namespace password_manager | 115 } // namespace password_manager |
| OLD | NEW |