| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 | 9 |
| 10 // Maximum number of icon files allowed to delete per jumplist update. | 10 // Maximum number of icon files allowed to delete per jumplist update. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // This method firstly calls DeleteDirectoryContent() to delete the contents in | 72 // This method firstly calls DeleteDirectoryContent() to delete the contents in |
| 73 // |path|. If |path| is empty after the call, it is removed. | 73 // |path|. If |path| is empty after the call, it is removed. |
| 74 FolderDeleteResult DeleteDirectory(const base::FilePath& path, | 74 FolderDeleteResult DeleteDirectory(const base::FilePath& path, |
| 75 int max_file_deleted); | 75 int max_file_deleted); |
| 76 | 76 |
| 77 // Deletes the directory at |path| and records the result to UMA. | 77 // Deletes the directory at |path| and records the result to UMA. |
| 78 void DeleteDirectoryAndLogResults(const base::FilePath& path, | 78 void DeleteDirectoryAndLogResults(const base::FilePath& path, |
| 79 int max_file_deleted); | 79 int max_file_deleted); |
| 80 | 80 |
| 81 // Deletes the content in the directory at |path| and records the result to UMA. | 81 // Deletes the content in the directory at |path| and records the result to UMA. |
| 82 void DeleteDirectoryContentAndLogResults(const base::FilePath& path, | 82 void DeleteDirectoryContentAndLogResultsUserVisiblePriority( |
| 83 int max_file_deleted); | 83 const base::FilePath& path, |
| 84 int max_file_deleted); |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ | 86 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ |
| OLD | NEW |