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

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

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.cc
diff --git a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
index 2b6778abb9e932902e0b6fb99f1fb97cc58235c8..b8ba13739ce18ed33e48f915eb5aba1bfee955ed 100644
--- a/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
@@ -10,7 +10,7 @@
#include "chrome/browser/chromeos/drive/file_cache.h"
#include "chrome/browser/chromeos/drive/file_system/create_file_operation.h"
#include "chrome/browser/chromeos/drive/file_system/download_operation.h"
-#include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
+#include "chrome/browser/chromeos/drive/file_system/operation_delegate.h"
#include "chrome/browser/chromeos/drive/file_write_watcher.h"
#include "chrome/browser/chromeos/drive/job_scheduler.h"
#include "chrome/browser/drive/event_logger.h"
@@ -40,24 +40,24 @@ FileError OpenCacheFileForWrite(
GetFileForSavingOperation::GetFileForSavingOperation(
EventLogger* logger,
base::SequencedTaskRunner* blocking_task_runner,
- OperationObserver* observer,
+ OperationDelegate* delegate,
JobScheduler* scheduler,
internal::ResourceMetadata* metadata,
internal::FileCache* cache,
const base::FilePath& temporary_file_directory)
: logger_(logger),
create_file_operation_(new CreateFileOperation(blocking_task_runner,
- observer,
+ delegate,
metadata)),
download_operation_(new DownloadOperation(blocking_task_runner,
- observer,
+ delegate,
scheduler,
metadata,
cache,
temporary_file_directory)),
file_write_watcher_(new internal::FileWriteWatcher),
blocking_task_runner_(blocking_task_runner),
- observer_(observer),
+ delegate_(delegate),
metadata_(metadata),
cache_(cache),
weak_ptr_factory_(this) {
@@ -193,7 +193,7 @@ void GetFileForSavingOperation::OnWriteEvent(
logger_->Log(logging::LOG_INFO, "Detected modification to %s.",
local_id.c_str());
- observer_->OnEntryUpdatedByOperation(local_id);
+ delegate_->OnEntryUpdatedByOperation(local_id);
// Clients may have enlarged the file. By FreeDiskpSpaceIfNeededFor(0),
// we try to ensure (0 + the-minimum-safe-margin = 512MB as of now) space.

Powered by Google App Engine
This is Rietveld 408576698