OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ |
6 #define CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ |
7 | 7 |
8 #include "base/containers/flat_set.h" | 8 #include "base/containers/flat_set.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 | 10 |
11 // Maximum number of icon files allowed to delete per jumplist update. | 11 // Maximum number of icon files allowed to delete per jumplist update. |
(...skipping 30 matching lines...) Expand all Loading... |
42 | 42 |
43 // Returns true if the directory at |path| has more than |max_files| files. | 43 // Returns true if the directory at |path| has more than |max_files| files. |
44 // Sub-directories are not taken into account here. | 44 // Sub-directories are not taken into account here. |
45 bool FilesExceedLimitInDir(const base::FilePath& path, int max_files); | 45 bool FilesExceedLimitInDir(const base::FilePath& path, int max_files); |
46 | 46 |
47 // Deletes all files in the directory at |path| but not in set |cached_files|. | 47 // Deletes all files in the directory at |path| but not in set |cached_files|. |
48 void DeleteNonCachedFiles(const base::FilePath& path, | 48 void DeleteNonCachedFiles(const base::FilePath& path, |
49 const base::flat_set<base::FilePath>& cached_files); | 49 const base::flat_set<base::FilePath>& cached_files); |
50 | 50 |
51 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ | 51 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ |
OLD | NEW |