| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/password_manager/password_form_manager.h" | 5 #include "chrome/browser/password_manager/password_form_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "chrome/browser/password_manager/password_manager.h" | 12 #include "chrome/browser/password_manager/password_manager.h" |
| 13 #include "chrome/browser/password_manager/password_store.h" | 13 #include "chrome/browser/password_manager/password_store.h" |
| 14 #include "chrome/browser/password_manager/password_store_factory.h" | 14 #include "chrome/browser/password_manager/password_store_factory.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "components/autofill/content/browser/autofill_driver_impl.h" | 16 #include "components/autofill/content/browser/autofill_driver_impl.h" |
| 17 #include "components/autofill/content/common/autofill_messages.h" |
| 17 #include "components/autofill/core/browser/form_structure.h" | 18 #include "components/autofill/core/browser/form_structure.h" |
| 18 #include "components/autofill/core/browser/validation.h" | 19 #include "components/autofill/core/browser/validation.h" |
| 19 #include "components/autofill/core/common/autofill_messages.h" | |
| 20 #include "components/autofill/core/common/password_form.h" | 20 #include "components/autofill/core/common/password_form.h" |
| 21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
| 22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
| 23 | 23 |
| 24 using autofill::FormStructure; | 24 using autofill::FormStructure; |
| 25 using autofill::PasswordForm; | 25 using autofill::PasswordForm; |
| 26 using autofill::PasswordFormMap; | 26 using autofill::PasswordFormMap; |
| 27 using base::Time; | 27 using base::Time; |
| 28 | 28 |
| 29 PasswordFormManager::PasswordFormManager(Profile* profile, | 29 PasswordFormManager::PasswordFormManager(Profile* profile, |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 | 650 |
| 651 void PasswordFormManager::SubmitFailed() { | 651 void PasswordFormManager::SubmitFailed() { |
| 652 submit_result_ = kSubmitResultFailed; | 652 submit_result_ = kSubmitResultFailed; |
| 653 } | 653 } |
| 654 | 654 |
| 655 void PasswordFormManager::SendNotBlacklistedToRenderer() { | 655 void PasswordFormManager::SendNotBlacklistedToRenderer() { |
| 656 content::RenderViewHost* host = web_contents_->GetRenderViewHost(); | 656 content::RenderViewHost* host = web_contents_->GetRenderViewHost(); |
| 657 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), | 657 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), |
| 658 observed_form_)); | 658 observed_form_)); |
| 659 } | 659 } |
| OLD | NEW |