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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 void ContentPasswordManagerDriver::ShowPasswordSuggestions( | 266 void ContentPasswordManagerDriver::ShowPasswordSuggestions( |
267 int key, | 267 int key, |
268 base::i18n::TextDirection text_direction, | 268 base::i18n::TextDirection text_direction, |
269 const base::string16& typed_username, | 269 const base::string16& typed_username, |
270 int options, | 270 int options, |
271 const gfx::RectF& bounds) { | 271 const gfx::RectF& bounds) { |
272 password_autofill_manager_.OnShowPasswordSuggestions( | 272 password_autofill_manager_.OnShowPasswordSuggestions( |
273 key, text_direction, typed_username, options, bounds); | 273 key, text_direction, typed_username, options, bounds); |
274 } | 274 } |
275 | 275 |
| 276 void ContentPasswordManagerDriver::ShowNotSecureWarning( |
| 277 base::i18n::TextDirection text_direction, |
| 278 const gfx::RectF& bounds) { |
| 279 password_autofill_manager_.OnShowNotSecureWarning(text_direction, bounds); |
| 280 } |
| 281 |
276 void ContentPasswordManagerDriver::PasswordAutofillAgentConstructed() { | 282 void ContentPasswordManagerDriver::PasswordAutofillAgentConstructed() { |
277 SendLoggingAvailability(); | 283 SendLoggingAvailability(); |
278 } | 284 } |
279 | 285 |
280 void ContentPasswordManagerDriver::RecordSavePasswordProgress( | 286 void ContentPasswordManagerDriver::RecordSavePasswordProgress( |
281 const std::string& log) { | 287 const std::string& log) { |
282 client_->GetLogManager()->LogSavePasswordProgress(log); | 288 client_->GetLogManager()->LogSavePasswordProgress(log); |
283 } | 289 } |
284 | 290 |
285 bool ContentPasswordManagerDriver::CheckChildProcessSecurityPolicy( | 291 bool ContentPasswordManagerDriver::CheckChildProcessSecurityPolicy( |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 ContentPasswordManagerDriver::GetPasswordGenerationAgent() { | 330 ContentPasswordManagerDriver::GetPasswordGenerationAgent() { |
325 if (!password_gen_agent_) { | 331 if (!password_gen_agent_) { |
326 render_frame_host_->GetRemoteInterfaces()->GetInterface( | 332 render_frame_host_->GetRemoteInterfaces()->GetInterface( |
327 mojo::MakeRequest(&password_gen_agent_)); | 333 mojo::MakeRequest(&password_gen_agent_)); |
328 } | 334 } |
329 | 335 |
330 return password_gen_agent_; | 336 return password_gen_agent_; |
331 } | 337 } |
332 | 338 |
333 } // namespace password_manager | 339 } // namespace password_manager |
OLD | NEW |