OLD | NEW |
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/drive_operations.h" | 5 #include "chrome/browser/chromeos/drive/file_system/drive_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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 DCHECK(!last_access_time.is_null()); | 145 DCHECK(!last_access_time.is_null()); |
146 DCHECK(!last_modified_time.is_null()); | 146 DCHECK(!last_modified_time.is_null()); |
147 DCHECK(!callback.is_null()); | 147 DCHECK(!callback.is_null()); |
148 | 148 |
149 touch_operation_->TouchFile( | 149 touch_operation_->TouchFile( |
150 file_path, last_access_time, last_modified_time, callback); | 150 file_path, last_access_time, last_modified_time, callback); |
151 } | 151 } |
152 | 152 |
153 void DriveOperations::UpdateFileByResourceId( | 153 void DriveOperations::UpdateFileByResourceId( |
154 const std::string& resource_id, | 154 const std::string& resource_id, |
155 DriveClientContext context, | 155 ClientContext context, |
156 const FileOperationCallback& callback) { | 156 const FileOperationCallback& callback) { |
157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
158 DCHECK(!callback.is_null()); | 158 DCHECK(!callback.is_null()); |
159 | 159 |
160 update_operation_->UpdateFileByResourceId(resource_id, context, callback); | 160 update_operation_->UpdateFileByResourceId(resource_id, context, callback); |
161 } | 161 } |
162 | 162 |
163 void DriveOperations::Search(const std::string& search_query, | 163 void DriveOperations::Search(const std::string& search_query, |
164 const GURL& next_feed, | 164 const GURL& next_feed, |
165 const SearchOperationCallback& callback) { | 165 const SearchOperationCallback& callback) { |
166 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 166 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
167 DCHECK(!callback.is_null()); | 167 DCHECK(!callback.is_null()); |
168 | 168 |
169 search_operation_->Search(search_query, next_feed, callback); | 169 search_operation_->Search(search_query, next_feed, callback); |
170 } | 170 } |
171 | 171 |
172 } // namespace file_system | 172 } // namespace file_system |
173 } // namespace drive | 173 } // namespace drive |
OLD | NEW |