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

Side by Side Diff: chrome/browser/password_manager/password_manager_util.h

Issue 2714543006: Clean Obsolete HTTP Data from the Password Store (Closed)
Patch Set: Actually do the deletion. Created 3 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
7
8 class GURL;
9 class Profile;
10
11 namespace password_manager_util {
12
13 // Checks whether HTTP Strict Transport Security (HSTS) is active for a given
14 // profile for the host of the given origin.
15 bool IsHSTSActiveForProfileAndHost(Profile* profile, const GURL& origin);
16
17 // Cleans all obsolete HTTP data for a given profile. HTTP data is considered
18 // obsolete, when the corresponding site has migrated to HTTPS and HSTS is
19 // enabled. Data that will be cleaned includes passwords, blacklisted origins
20 // and site statistics. This is guarded by a preference and will be a no-op if
21 // the task was run for the profile in the past.
22 void CleanObsoleteHttpDataForProfile(Profile* profile);
vasilii 2017/02/24 17:27:04 I guess the function is public for the testing rea
jdoerrie 2017/02/27 10:53:21 Yeah, I suppose I could add a delay field to |Dela
vasilii 2017/02/27 12:28:26 Acknowledged.
23
24 // Delayed version of the above method.
25 void DelayCleanObsoleteHttpDataForProfile(Profile* profile);
26
27 } // namespace password_manager_util
28
29 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698