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" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool ContentPasswordManagerDriver::OnMessageReceived( | 84 bool ContentPasswordManagerDriver::OnMessageReceived( |
85 const IPC::Message& message) { | 85 const IPC::Message& message) { |
86 bool handled = true; | 86 bool handled = true; |
87 IPC_BEGIN_MESSAGE_MAP(PasswordManager, message) | 87 IPC_BEGIN_MESSAGE_MAP(PasswordManager, message) |
88 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsParsed, | 88 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsParsed, |
89 &password_manager_, | 89 &password_manager_, |
90 PasswordManager::OnPasswordFormsParsed) | 90 PasswordManager::OnPasswordFormsParsed) |
91 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsRendered, | 91 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormsRendered, |
92 &password_manager_, | 92 &password_manager_, |
93 PasswordManager::OnPasswordFormsRendered) | 93 PasswordManager::OnPasswordFormsRendered) |
| 94 IPC_MESSAGE_FORWARD(AutofillHostMsg_RemoveSavedPasswordAndUpdateManagers, |
| 95 &password_manager_, |
| 96 PasswordManager::OnRemoveSavedPasswordAndUpdateManagers) |
94 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormSubmitted, | 97 IPC_MESSAGE_FORWARD(AutofillHostMsg_PasswordFormSubmitted, |
95 &password_manager_, | 98 &password_manager_, |
96 PasswordManager::OnPasswordFormSubmitted) | 99 PasswordManager::OnPasswordFormSubmitted) |
97 IPC_MESSAGE_UNHANDLED(handled = false) | 100 IPC_MESSAGE_UNHANDLED(handled = false) |
98 IPC_END_MESSAGE_MAP() | 101 IPC_END_MESSAGE_MAP() |
99 | 102 |
100 return handled; | 103 return handled; |
101 } | 104 } |
102 | 105 |
103 autofill::AutofillManager* ContentPasswordManagerDriver::GetAutofillManager() { | 106 autofill::AutofillManager* ContentPasswordManagerDriver::GetAutofillManager() { |
104 autofill::ContentAutofillDriver* driver = | 107 autofill::ContentAutofillDriver* driver = |
105 autofill::ContentAutofillDriver::FromWebContents(web_contents()); | 108 autofill::ContentAutofillDriver::FromWebContents(web_contents()); |
106 return driver ? driver->autofill_manager() : NULL; | 109 return driver ? driver->autofill_manager() : NULL; |
107 } | 110 } |
OLD | NEW |