| 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/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.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 "chrome/common/autofill_messages.h" | 16 #include "components/autofill/common/autofill_messages.h" |
| 17 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/common/password_form.h" | 19 #include "content/public/common/password_form.h" |
| 20 | 20 |
| 21 using base::Time; | 21 using base::Time; |
| 22 using content::PasswordForm; | 22 using content::PasswordForm; |
| 23 using content::PasswordFormMap; | 23 using content::PasswordFormMap; |
| 24 | 24 |
| 25 PasswordFormManager::PasswordFormManager(Profile* profile, | 25 PasswordFormManager::PasswordFormManager(Profile* profile, |
| 26 PasswordManager* password_manager, | 26 PasswordManager* password_manager, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 void PasswordFormManager::SubmitFailed() { | 517 void PasswordFormManager::SubmitFailed() { |
| 518 submit_result_ = kSubmitResultFailed; | 518 submit_result_ = kSubmitResultFailed; |
| 519 } | 519 } |
| 520 | 520 |
| 521 void PasswordFormManager::SendNotBlacklistedToRenderer() { | 521 void PasswordFormManager::SendNotBlacklistedToRenderer() { |
| 522 content::RenderViewHost* host = web_contents_->GetRenderViewHost(); | 522 content::RenderViewHost* host = web_contents_->GetRenderViewHost(); |
| 523 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), | 523 host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), |
| 524 observed_form_)); | 524 observed_form_)); |
| 525 } | 525 } |
| OLD | NEW |