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

Side by Side Diff: chrome/browser/chromeos/drive/file_system/update_operation.cc

Issue 14493009: drive: Rename DriveScheduler to JobScheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/drive/file_system/update_operation.h" 5 #include "chrome/browser/chromeos/drive/file_system/update_operation.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "chrome/browser/chromeos/drive/drive.pb.h" 8 #include "chrome/browser/chromeos/drive/drive.pb.h"
9 #include "chrome/browser/chromeos/drive/drive_cache.h" 9 #include "chrome/browser/chromeos/drive/drive_cache.h"
10 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" 10 #include "chrome/browser/chromeos/drive/drive_file_system_util.h"
11 #include "chrome/browser/chromeos/drive/drive_scheduler.h"
12 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" 11 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
12 #include "chrome/browser/chromeos/drive/job_scheduler.h"
13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 13 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 17
18 namespace drive { 18 namespace drive {
19 namespace file_system { 19 namespace file_system {
20 20
21 UpdateOperation::UpdateOperation( 21 UpdateOperation::UpdateOperation(
22 DriveCache* cache, 22 DriveCache* cache,
23 DriveResourceMetadata* metadata, 23 DriveResourceMetadata* metadata,
24 DriveScheduler* scheduler, 24 JobScheduler* scheduler,
25 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner, 25 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner,
26 OperationObserver* observer) 26 OperationObserver* observer)
27 : cache_(cache), 27 : cache_(cache),
28 metadata_(metadata), 28 metadata_(metadata),
29 scheduler_(scheduler), 29 scheduler_(scheduler),
30 blocking_task_runner_(blocking_task_runner), 30 blocking_task_runner_(blocking_task_runner),
31 observer_(observer), 31 observer_(observer),
32 weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 32 weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
34 } 34 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 observer_->OnDirectoryChangedByOperation(drive_file_path.DirName()); 155 observer_->OnDirectoryChangedByOperation(drive_file_path.DirName());
156 156
157 // Clear the dirty bit if we have updated an existing file. 157 // Clear the dirty bit if we have updated an existing file.
158 cache_->ClearDirty(entry_proto->resource_id(), 158 cache_->ClearDirty(entry_proto->resource_id(),
159 entry_proto->file_specific_info().file_md5(), 159 entry_proto->file_specific_info().file_md5(),
160 callback); 160 callback);
161 } 161 }
162 162
163 } // namespace file_system 163 } // namespace file_system
164 } // namespace drive 164 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/update_operation.h ('k') | chrome/browser/chromeos/drive/job_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698