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

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

Issue 15974004: drive: Rewrite UpdateOpreation to access cache/metadata on the blocking pool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ClearDirtyOnUIThread 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/operations.h" 5 #include "chrome/browser/chromeos/drive/file_system/operations.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" 8 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h"
9 #include "chrome/browser/chromeos/drive/file_system/create_directory_operation.h " 9 #include "chrome/browser/chromeos/drive/file_system/create_directory_operation.h "
10 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" 10 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 metadata, 56 metadata,
57 cache)); 57 cache));
58 move_operation_.reset( 58 move_operation_.reset(
59 new MoveOperation(observer, scheduler, metadata)); 59 new MoveOperation(observer, scheduler, metadata));
60 remove_operation_.reset( 60 remove_operation_.reset(
61 new RemoveOperation(observer, scheduler, metadata, cache)); 61 new RemoveOperation(observer, scheduler, metadata, cache));
62 touch_operation_.reset( 62 touch_operation_.reset(
63 new TouchOperation(blocking_task_runner, observer, scheduler, metadata)); 63 new TouchOperation(blocking_task_runner, observer, scheduler, metadata));
64 download_operation_.reset(new DownloadOperation( 64 download_operation_.reset(new DownloadOperation(
65 blocking_task_runner, observer, scheduler, metadata, cache)); 65 blocking_task_runner, observer, scheduler, metadata, cache));
66 update_operation_.reset( 66 update_operation_.reset(new UpdateOperation(blocking_task_runner,
67 new UpdateOperation(observer, scheduler, metadata, cache)); 67 observer,
68 scheduler,
69 metadata,
70 cache));
68 search_operation_.reset( 71 search_operation_.reset(
69 new SearchOperation(blocking_task_runner, scheduler, metadata)); 72 new SearchOperation(blocking_task_runner, scheduler, metadata));
70 } 73 }
71 74
72 void Operations::Copy(const base::FilePath& src_file_path, 75 void Operations::Copy(const base::FilePath& src_file_path,
73 const base::FilePath& dest_file_path, 76 const base::FilePath& dest_file_path,
74 const FileOperationCallback& callback) { 77 const FileOperationCallback& callback) {
75 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 78 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
76 DCHECK(!callback.is_null()); 79 DCHECK(!callback.is_null());
77 80
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const GURL& next_feed, 184 const GURL& next_feed,
182 const SearchOperationCallback& callback) { 185 const SearchOperationCallback& callback) {
183 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 186 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
184 DCHECK(!callback.is_null()); 187 DCHECK(!callback.is_null());
185 188
186 search_operation_->Search(search_query, next_feed, callback); 189 search_operation_->Search(search_query, next_feed, callback);
187 } 190 }
188 191
189 } // namespace file_system 192 } // namespace file_system
190 } // namespace drive 193 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_cache_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system/update_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698