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

Side by Side Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

Issue 10875028: Wire FileSystemOperation::TouchFile to Drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase over FSOI -> FSO renaming. Created 8 years, 3 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 "webkit/chromeos/fileapi/remote_file_system_operation.h" 5 #include "webkit/chromeos/fileapi/remote_file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // been cancelled, report it, and report that the cancel has succeeded. 170 // been cancelled, report it, and report that the cancel has succeeded.
171 DCHECK(cancel_callback_.is_null()); 171 DCHECK(cancel_callback_.is_null());
172 cancel_callback_ = cancel_callback; 172 cancel_callback_ = cancel_callback;
173 } 173 }
174 } 174 }
175 175
176 void RemoteFileSystemOperation::TouchFile(const FileSystemURL& url, 176 void RemoteFileSystemOperation::TouchFile(const FileSystemURL& url,
177 const base::Time& last_access_time, 177 const base::Time& last_access_time,
178 const base::Time& last_modified_time, 178 const base::Time& last_modified_time,
179 const StatusCallback& callback) { 179 const StatusCallback& callback) {
180 NOTIMPLEMENTED(); 180 DCHECK(SetPendingOperationType(kOperationTouchFile));
181 remote_proxy_->TouchFile(
182 url,
183 last_access_time,
184 last_modified_time,
185 base::Bind(&RemoteFileSystemOperation::DidFinishFileOperation,
186 base::Owned(this), callback));
181 } 187 }
182 188
183 void RemoteFileSystemOperation::OpenFile(const FileSystemURL& url, 189 void RemoteFileSystemOperation::OpenFile(const FileSystemURL& url,
184 int file_flags, 190 int file_flags,
185 base::ProcessHandle peer_handle, 191 base::ProcessHandle peer_handle,
186 const OpenFileCallback& callback) { 192 const OpenFileCallback& callback) {
187 DCHECK(SetPendingOperationType(kOperationOpenFile)); 193 DCHECK(SetPendingOperationType(kOperationOpenFile));
188 remote_proxy_->OpenFile( 194 remote_proxy_->OpenFile(
189 url, 195 url,
190 file_flags, 196 file_flags,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 314
309 void RemoteFileSystemOperation::DidOpenFile( 315 void RemoteFileSystemOperation::DidOpenFile(
310 const OpenFileCallback& callback, 316 const OpenFileCallback& callback,
311 base::PlatformFileError result, 317 base::PlatformFileError result,
312 base::PlatformFile file, 318 base::PlatformFile file,
313 base::ProcessHandle peer_handle) { 319 base::ProcessHandle peer_handle) {
314 callback.Run(result, file, peer_handle); 320 callback.Run(result, file, peer_handle);
315 } 321 }
316 322
317 } // namespace chromeos 323 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_file_system_proxy.cc ('k') | webkit/chromeos/fileapi/remote_file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698