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

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: 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
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 b8e10594f5d3c8790c0b6105e0b2f174cd5fe63c..e3a85ee2804f9eec5d4f1cb8c8d789977fc83d93 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.
@@ -257,13 +247,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);
@@ -375,11 +358,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') | chrome/browser/chromeos/drive/file_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698