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

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

Issue 16628003: drive: Remove FileCacheObserver::OnCacheCommitted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PinAndUnpin 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 2c169a2bdcbf35f0a56484b9b30182dba8f2d43d..0c6d5e9f2ee5086e9cd507afe979d0060880db56 100644
--- a/chrome/browser/chromeos/drive/file_cache.h
+++ b/chrome/browser/chromeos/drive/file_cache.h
@@ -198,16 +198,6 @@ class FileCache {
const base::FilePath& source_path,
FileOperationType file_operation_type);
- // Stores |source_path| to the cache and mark it as dirty, i.e., needs to be
- // uploaded to the remove server for syncing.
- // |callback| must not be null.
- // Must be called on the UI thread.
- void StoreLocallyModifiedOnUIThread(const std::string& resource_id,
- const std::string& md5,
- const base::FilePath& source_path,
- FileOperationType file_operation_type,
- const FileOperationCallback& callback);
-
// Runs Pin() on |blocking_task_runner_|, and calls |callback| with the result
// asynchronously.
// |callback| must not be null.
@@ -256,13 +246,6 @@ class FileCache {
FileError MarkDirty(const std::string& resource_id,
const std::string& md5);
- // Commits changes for the specified dirty entry.
- // |callback| must not be null.
- // Must be called on the UI thread.
- void CommitDirtyOnUIThread(const std::string& resource_id,
- const std::string& md5,
- const FileOperationCallback& callback);
-
// Clears dirty state of the specified entry.
FileError ClearDirty(const std::string& resource_id,
const std::string& md5);
@@ -348,8 +331,7 @@ class FileCache {
FileError StoreInternal(const std::string& resource_id,
const std::string& md5,
const base::FilePath& source_path,
- FileOperationType file_operation_type,
- CachedFileOrigin origin);
+ FileOperationType file_operation_type);
// Used to implement MarkAsMountedOnUIThread.
FileError MarkAsMounted(const std::string& resource_id,
@@ -373,11 +355,6 @@ class FileCache {
const FileOperationCallback& callback,
FileError error);
- // Runs callback and notifies the observers when file is committed.
- void OnCommitDirty(const std::string& resource_id,
- const FileOperationCallback& callback,
- FileError error);
-
// Returns true if we have sufficient space to store the given number of
// bytes, while keeping kMinFreeSpace bytes on the disk.
bool HasEnoughSpaceFor(int64 num_bytes, const base::FilePath& path);
« 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