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