summaryrefslogtreecommitdiffstats
path: root/components/drive/remove_stale_cache_files.h
blob: d3e922c231b536e1b638be63d719fcc4172c1713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
#define COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_

namespace drive{
namespace internal {

class FileCache;
class ResourceMetadata;

// Removes files from |cache| which are not dirty but the MD5 is obsolete.
// Must be run on the same task runner as |cache| and |resource_metadata| use.
void RemoveStaleCacheFiles(FileCache* cache,
                           ResourceMetadata* resource_metadata);

}  // namespace internal
}  // namespace drive

#endif  // COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_