Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: chrome/browser/password_manager/password_form_manager.cc

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_split.h" 10 #include "base/string_split.h"
11 #include "base/string_util.h" 11 #include "base/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/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "webkit/glue/password_form_dom_manager.h" 15 #include "webkit/forms/password_form_dom_manager.h"
16 16
17 using base::Time; 17 using base::Time;
18 using webkit_glue::PasswordForm; 18 using webkit::forms::PasswordForm;
19 using webkit_glue::PasswordFormMap; 19 using webkit::forms::PasswordFormMap;
20 20
21 PasswordFormManager::PasswordFormManager(Profile* profile, 21 PasswordFormManager::PasswordFormManager(Profile* profile,
22 PasswordManager* password_manager, 22 PasswordManager* password_manager,
23 const PasswordForm& observed_form, 23 const PasswordForm& observed_form,
24 bool ssl_valid) 24 bool ssl_valid)
25 : best_matches_deleter_(&best_matches_), 25 : best_matches_deleter_(&best_matches_),
26 observed_form_(observed_form), 26 observed_form_(observed_form),
27 is_new_login_(true), 27 is_new_login_(true),
28 password_manager_(password_manager), 28 password_manager_(password_manager),
29 pending_login_query_(0), 29 pending_login_query_(0),
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 return score; 474 return score;
475 } 475 }
476 476
477 void PasswordFormManager::SubmitPassed() { 477 void PasswordFormManager::SubmitPassed() {
478 submit_result_ = kSubmitResultPassed; 478 submit_result_ = kSubmitResultPassed;
479 } 479 }
480 480
481 void PasswordFormManager::SubmitFailed() { 481 void PasswordFormManager::SubmitFailed() {
482 submit_result_ = kSubmitResultFailed; 482 submit_result_ = kSubmitResultFailed;
483 } 483 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698