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

Unified Diff: chrome/browser/chromeos/drive/file_cache.h

Issue 15690021: drive: Move temporary file removal responsiblity to FileCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_cache.h
diff --git a/chrome/browser/chromeos/drive/file_cache.h b/chrome/browser/chromeos/drive/file_cache.h
index 4634d870c000bc56a8ab22cbb72d413472f45756..bb3f911820275f4fdfc4c5136ae6a872b56a7164 100644
--- a/chrome/browser/chromeos/drive/file_cache.h
+++ b/chrome/browser/chromeos/drive/file_cache.h
@@ -208,13 +208,18 @@ class FileCache {
FileOperationType file_operation_type,
const FileOperationCallback& callback);
- // Pins the specified entry.
+ // Runs Pin() on |blocking_task_runner_|, and calls |callback| with the result
+ // asynchronously.
// |callback| must not be null.
// Must be called on the UI thread.
void PinOnUIThread(const std::string& resource_id,
const std::string& md5,
const FileOperationCallback& callback);
+ // Pins the specified entry.
+ FileError Pin(const std::string& resource_id,
+ const std::string& md5);
+
// Runs Unpin() on |blocking_task_runner_|, and calls |callback| with the
// result asynchronously.
// |callback| must not be null.
@@ -303,6 +308,7 @@ class FileCache {
private:
friend class FileCacheTest;
+ friend class FileCacheTestOnUIThread;
// Enum defining origin of a cached file.
enum CachedFileOrigin {
@@ -341,10 +347,6 @@ class FileCache {
FileOperationType file_operation_type,
CachedFileOrigin origin);
- // Used to implement PinOnUIThread.
- FileError Pin(const std::string& resource_id,
- const std::string& md5);
-
// Used to implement MarkAsMountedOnUIThread.
FileError MarkAsMounted(const std::string& resource_id,
const std::string& md5,
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698