Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |