Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / drive / remove_stale_cache_files.h
blobd3e922c231b536e1b638be63d719fcc4172c1713
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.
5 #ifndef COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
6 #define COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_
8 namespace drive{
9 namespace internal {
11 class FileCache;
12 class ResourceMetadata;
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.
16 void RemoveStaleCacheFiles(FileCache* cache,
17 ResourceMetadata* resource_metadata);
19 } // namespace internal
20 } // namespace drive
22 #endif // COMPONENTS_DRIVE_REMOVE_STALE_CACHE_FILES_H_