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

Side by Side Diff: components/password_manager/core/browser/login_database.h

Issue 355143006: [Password Manager] Add UMA stats to track interaction with synced accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo Created 6 years, 5 months 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 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 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 class LoginDatabase { 24 class LoginDatabase {
25 public: 25 public:
26 LoginDatabase(); 26 LoginDatabase();
27 virtual ~LoginDatabase(); 27 virtual ~LoginDatabase();
28 28
29 // Initialize the database with an sqlite file at the given path. 29 // Initialize the database with an sqlite file at the given path.
30 // If false is returned, no other method should be called. 30 // If false is returned, no other method should be called.
31 bool Init(const base::FilePath& db_path); 31 bool Init(const base::FilePath& db_path);
32 32
33 // Reports usage metrics to UMA. 33 // Reports usage metrics to UMA.
34 void ReportMetrics(); 34 void ReportMetrics(const std::string& sync_username);
35 35
36 // Adds |form| to the list of remembered password forms. Returns the list of 36 // Adds |form| to the list of remembered password forms. Returns the list of
37 // changes applied ({}, {ADD}, {REMOVE, ADD}). If it returns {REMOVE, ADD} 37 // changes applied ({}, {ADD}, {REMOVE, ADD}). If it returns {REMOVE, ADD}
38 // then the REMOVE is associated with the form that was added. Thus only the 38 // then the REMOVE is associated with the form that was added. Thus only the
39 // primary key columns contain the values associated with the removed form. 39 // primary key columns contain the values associated with the removed form.
40 PasswordStoreChangeList AddLogin(const autofill::PasswordForm& form); 40 PasswordStoreChangeList AddLogin(const autofill::PasswordForm& form);
41 41
42 // Updates existing password form. Returns the list of applied changes 42 // Updates existing password form. Returns the list of applied changes
43 // ({}, {UPDATE}). The password is looked up by the tuple {origin, 43 // ({}, {UPDATE}). The password is looked up by the tuple {origin,
44 // username_element, username_value, password_element, signon_realm}. 44 // username_element, username_value, password_element, signon_realm}.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 sql::MetaTable meta_table_; 148 sql::MetaTable meta_table_;
149 149
150 PSLMatchingHelper psl_helper_; 150 PSLMatchingHelper psl_helper_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); 152 DISALLOW_COPY_AND_ASSIGN(LoginDatabase);
153 }; 153 };
154 154
155 } // namespace password_manager 155 } // namespace password_manager
156 156
157 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 157 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/DEPS ('k') | components/password_manager/core/browser/login_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698