Index: chrome/browser/component_updater/component_updater_utils.h |
diff --git a/chrome/browser/component_updater/component_updater_utils.h b/chrome/browser/component_updater/component_updater_utils.h |
index f4b3fdddf0b616b60490a723b303ac7f05c90ce0..fdd949e08fbfa5744d615bf671698307b26da4a7 100644 |
--- a/chrome/browser/component_updater/component_updater_utils.h |
+++ b/chrome/browser/component_updater/component_updater_utils.h |
@@ -9,6 +9,10 @@ |
class GURL; |
+namespace base { |
+class FilePath; |
+} |
+ |
namespace net { |
class URLFetcher; |
class URLFetcherDelegate; |
@@ -55,6 +59,11 @@ int GetFetchError(const net::URLFetcher& fetcher); |
// Returns true if the |status_code| represents a server error 5xx. |
bool IsHttpServerError(int status_code); |
+// Deletes the file and its directory, if the directory is empty. If the |
+// parent directory is not empty, the function ignores deleting the directory. |
+// Returns true if the file and the empty directory are deleted. |
+bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); |
+ |
} // namespace component_updater |
#endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ |