| 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/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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 void ContentPasswordManagerDriver::SendLoggingAvailability() { | 149 void ContentPasswordManagerDriver::SendLoggingAvailability() { |
| 150 GetPasswordAutofillAgent()->SetLoggingState( | 150 GetPasswordAutofillAgent()->SetLoggingState( |
| 151 client_->GetLogManager()->IsLoggingActive()); | 151 client_->GetLogManager()->IsLoggingActive()); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void ContentPasswordManagerDriver::AllowToRunFormClassifier() { | 154 void ContentPasswordManagerDriver::AllowToRunFormClassifier() { |
| 155 GetPasswordGenerationAgent()->AllowToRunFormClassifier(); | 155 GetPasswordGenerationAgent()->AllowToRunFormClassifier(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 autofill::AutofillDriver* ContentPasswordManagerDriver::GetAutofillDriver() { |
| 159 return autofill::ContentAutofillDriver::GetForRenderFrameHost( |
| 160 render_frame_host_); |
| 161 } |
| 162 |
| 158 PasswordGenerationManager* | 163 PasswordGenerationManager* |
| 159 ContentPasswordManagerDriver::GetPasswordGenerationManager() { | 164 ContentPasswordManagerDriver::GetPasswordGenerationManager() { |
| 160 return &password_generation_manager_; | 165 return &password_generation_manager_; |
| 161 } | 166 } |
| 162 | 167 |
| 163 PasswordManager* ContentPasswordManagerDriver::GetPasswordManager() { | 168 PasswordManager* ContentPasswordManagerDriver::GetPasswordManager() { |
| 164 return client_->GetPasswordManager(); | 169 return client_->GetPasswordManager(); |
| 165 } | 170 } |
| 166 | 171 |
| 167 PasswordAutofillManager* | 172 PasswordAutofillManager* |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 const gfx::RectF& bounds_in_frame_coordinates) { | 356 const gfx::RectF& bounds_in_frame_coordinates) { |
| 352 content::RenderWidgetHostView* rwhv = render_frame_host_->GetView(); | 357 content::RenderWidgetHostView* rwhv = render_frame_host_->GetView(); |
| 353 if (!rwhv) | 358 if (!rwhv) |
| 354 return bounds_in_frame_coordinates; | 359 return bounds_in_frame_coordinates; |
| 355 return gfx::RectF(rwhv->TransformPointToRootCoordSpaceF( | 360 return gfx::RectF(rwhv->TransformPointToRootCoordSpaceF( |
| 356 bounds_in_frame_coordinates.origin()), | 361 bounds_in_frame_coordinates.origin()), |
| 357 bounds_in_frame_coordinates.size()); | 362 bounds_in_frame_coordinates.size()); |
| 358 } | 363 } |
| 359 | 364 |
| 360 } // namespace password_manager | 365 } // namespace password_manager |
| OLD | NEW |