Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: chrome/browser/chromeos/gdata/stale_cache_files_remover.h

Issue 10832241: Drive: Removes unused cache files after the initial feed fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix (#2) Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698