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

Unified Diff: chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h

Issue 408143014: Rename OperationObserver to OperationDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_system/get_file_for_saving_operation.h
diff --git a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h
index 09d6eb539e4914fb27c144872c92f52ae5c2bfd5..e1f46bcbab43185882cd0d1e3b252f68d6f2f3c2 100644
--- a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h
+++ b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h
@@ -33,18 +33,18 @@ namespace file_system {
class CreateFileOperation;
class DownloadOperation;
-class OperationObserver;
+class OperationDelegate;
// Implements GetFileForSaving() operation that prepares a local cache for
// a Drive file whose next modification is monitored and notified to the
-// OperationObserver.
+// OperationDelegate.
// TODO(kinaba): crbug.com/269424: we might want to monitor all the changes
// to the cache directory, not just the one immediately after the save dialog.
class GetFileForSavingOperation {
public:
GetFileForSavingOperation(EventLogger* logger,
base::SequencedTaskRunner* blocking_task_runner,
- OperationObserver* observer,
+ OperationDelegate* delegate,
JobScheduler* scheduler,
internal::ResourceMetadata* metadata,
internal::FileCache* cache,
@@ -53,7 +53,7 @@ class GetFileForSavingOperation {
// Makes sure that |file_path| in the file system is available in the local
// cache, and marks it as dirty. The next modification to the cache file is
- // watched and is automatically notified to the observer. If the entry is not
+ // watched and is automatically notified to the delegate. If the entry is not
// present in the file system, it is created.
void GetFileForSaving(const base::FilePath& file_path,
const GetFileCallback& callback);
@@ -89,7 +89,7 @@ class GetFileForSavingOperation {
scoped_ptr<DownloadOperation> download_operation_;
scoped_ptr<internal::FileWriteWatcher> file_write_watcher_;
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
- OperationObserver* observer_;
+ OperationDelegate* delegate_;
internal::ResourceMetadata* metadata_;
internal::FileCache* cache_;

Powered by Google App Engine
This is Rietveld 408576698