1// Copyright (c) 2012 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_CHROMEOS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
6#define CHROME_BROWSER_CHROMEOS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
7
8namespace drive{
9namespace internal {
10
11class FileCache;
12class ResourceMetadata;
13
14// Removes files from |cache| which are not dirty but the MD5 is obsolete.
15// Must be run on the same task runner as |cache| and |resource_metadata| use.
16void RemoveStaleCacheFiles(FileCache* cache,
17                           ResourceMetadata* resource_metadata);
18
19}  // namespace internal
20}  // namespace drive
21
22#endif  // CHROME_BROWSER_CHROMEOS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
23