| 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/common/autofill_messages.h" | 7 #include "components/autofill/content/common/autofill_messages.h" |
| 8 #include "components/autofill/core/common/form_data.h" | 8 #include "components/autofill/core/common/form_data.h" |
| 9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
| 10 #include "components/password_manager/content/browser/bad_message.h" | 10 #include "components/password_manager/content/browser/bad_message.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID())); | 110 host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID())); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void ContentPasswordManagerDriver::ForceSavePassword() { | 113 void ContentPasswordManagerDriver::ForceSavePassword() { |
| 114 content::RenderFrameHost* host = render_frame_host_; | 114 content::RenderFrameHost* host = render_frame_host_; |
| 115 host->Send(new AutofillMsg_FindFocusedPasswordForm(host->GetRoutingID())); | 115 host->Send(new AutofillMsg_FindFocusedPasswordForm(host->GetRoutingID())); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void ContentPasswordManagerDriver::GeneratePassword() { | 118 void ContentPasswordManagerDriver::GeneratePassword() { |
| 119 content::RenderFrameHost* host = render_frame_host_; | 119 content::RenderFrameHost* host = render_frame_host_; |
| 120 host->Send(new AutofillMsg_GeneratePassword(host->GetRoutingID())); | 120 host->Send( |
| 121 new AutofillMsg_UserTriggeredGeneratePassword(host->GetRoutingID())); |
| 121 } | 122 } |
| 122 | 123 |
| 123 void ContentPasswordManagerDriver::SendLoggingAvailability() { | 124 void ContentPasswordManagerDriver::SendLoggingAvailability() { |
| 124 render_frame_host_->Send(new AutofillMsg_SetLoggingState( | 125 render_frame_host_->Send(new AutofillMsg_SetLoggingState( |
| 125 render_frame_host_->GetRoutingID(), | 126 render_frame_host_->GetRoutingID(), |
| 126 client_->GetLogManager()->IsLoggingActive())); | 127 client_->GetLogManager()->IsLoggingActive())); |
| 127 } | 128 } |
| 128 | 129 |
| 129 PasswordGenerationManager* | 130 PasswordGenerationManager* |
| 130 ContentPasswordManagerDriver::GetPasswordGenerationManager() { | 131 ContentPasswordManagerDriver::GetPasswordGenerationManager() { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 if (!policy->CanAccessDataForOrigin(render_frame_host_->GetProcess()->GetID(), | 249 if (!policy->CanAccessDataForOrigin(render_frame_host_->GetProcess()->GetID(), |
| 249 url)) { | 250 url)) { |
| 250 bad_message::ReceivedBadMessage(render_frame_host_->GetProcess(), reason); | 251 bad_message::ReceivedBadMessage(render_frame_host_->GetProcess(), reason); |
| 251 return false; | 252 return false; |
| 252 } | 253 } |
| 253 | 254 |
| 254 return true; | 255 return true; |
| 255 } | 256 } |
| 256 | 257 |
| 257 } // namespace password_manager | 258 } // namespace password_manager |
| OLD | NEW |