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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_file_system_proxy.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 "chrome/browser/chromeos/gdata/drive_file_system_proxy.h" 5 #include "chrome/browser/chromeos/gdata/drive_file_system_proxy.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 void DriveFileSystemProxy::NotifyCloseFile(const FileSystemURL& url) { 548 void DriveFileSystemProxy::NotifyCloseFile(const FileSystemURL& url) {
549 FilePath file_path; 549 FilePath file_path;
550 if (!ValidateUrl(url, &file_path)) 550 if (!ValidateUrl(url, &file_path))
551 return; 551 return;
552 552
553 file_system_->CloseFile(file_path, 553 file_system_->CloseFile(file_path,
554 base::Bind(&EmitDebugLogForCloseFile, file_path)); 554 base::Bind(&EmitDebugLogForCloseFile, file_path));
555 } 555 }
556 556
557 void DriveFileSystemProxy::TouchFile(
558 const fileapi::FileSystemURL& url,
559 const base::Time& last_access_time,
560 const base::Time& last_modified_time,
561 const FileSystemOperation::StatusCallback& callback) {
562 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
563
564 // TODO(kinaba,kochi): crbug.com/144369. Support this operations once we have
565 // migrated to the new Drive API.
566 MessageLoopProxy::current()->PostTask(FROM_HERE,
567 base::Bind(callback, base::PLATFORM_FILE_ERROR_INVALID_OPERATION));
568 }
569
557 void DriveFileSystemProxy::CreateSnapshotFile( 570 void DriveFileSystemProxy::CreateSnapshotFile(
558 const FileSystemURL& file_url, 571 const FileSystemURL& file_url,
559 const FileSystemOperation::SnapshotFileCallback& callback) { 572 const FileSystemOperation::SnapshotFileCallback& callback) {
560 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 573 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
561 574
562 FilePath file_path; 575 FilePath file_path;
563 if (!ValidateUrl(file_url, &file_path)) { 576 if (!ValidateUrl(file_url, &file_path)) {
564 MessageLoopProxy::current()->PostTask(FROM_HERE, 577 MessageLoopProxy::current()->PostTask(FROM_HERE,
565 base::Bind(callback, 578 base::Bind(callback,
566 base::PLATFORM_FILE_ERROR_NOT_FOUND, 579 base::PLATFORM_FILE_ERROR_NOT_FOUND,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 void DriveFileSystemProxy::CloseWritableSnapshotFile( 746 void DriveFileSystemProxy::CloseWritableSnapshotFile(
734 const FilePath& virtual_path, 747 const FilePath& virtual_path,
735 const FilePath& local_path) { 748 const FilePath& local_path) {
736 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 749 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
737 750
738 file_system_->CloseFile(virtual_path, 751 file_system_->CloseFile(virtual_path,
739 base::Bind(&EmitDebugLogForCloseFile, virtual_path)); 752 base::Bind(&EmitDebugLogForCloseFile, virtual_path));
740 } 753 }
741 754
742 } // namespace gdata 755 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_file_system_proxy.h ('k') | webkit/chromeos/fileapi/remote_file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698