OLD | NEW |
---|---|
(Empty) | |
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_GDATA_STALE_CACHE_FILE_REMOVER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_STALE_CACHE_FILE_REMOVER_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/basictypes.h" | |
12 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" | |
13 | |
14 namespace gdata{ | |
15 | |
16 class GDataCache; | |
17 class GDataFileSystem; | |
18 | |
19 class StaleCacheFilesRemover { | |
satorux1
2012/08/10 23:47:40
class comment is missing.
| |
20 public: | |
21 StaleCacheFilesRemover(GDataFileSystemInterface* file_system, | |
22 GDataCache* cache); | |
23 virtual ~StaleCacheFilesRemover(); | |
24 | |
25 void ScrubCacheAfterDelay(); | |
satorux1
2012/08/10 23:47:40
function comment is missing. Please fix other plac
| |
26 | |
27 private: | |
28 void ScrubCache(); | |
29 void OnGetResourceIdsOfAllFiles(const std::vector<std::string>& resource_ids); | |
30 | |
31 GDataFileSystemInterface* file_system_; | |
32 GDataCache* cache_; | |
33 | |
34 base::WeakPtrFactory<StaleCacheFilesRemover> weak_ptr_factory_; | |
35 DISALLOW_COPY_AND_ASSIGN(StaleCacheFilesRemover); | |
36 }; | |
37 | |
38 } // namespace gdata | |
39 | |
40 #endif // CHROME_BROWSER_CHROMEOS_GDATA_STALE_CACHE_FILE_REMOVER_H_ | |
OLD | NEW |