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

Side by Side Diff: webkit/chromeos/fileapi/remote_file_system_proxy.h

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
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "webkit/fileapi/file_system_operation.h" 10 #include "webkit/fileapi/file_system_operation.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // base::PlatformFileFlags for details). 96 // base::PlatformFileFlags for details).
97 virtual void OpenFile( 97 virtual void OpenFile(
98 const FileSystemURL& url, 98 const FileSystemURL& url,
99 int flags, 99 int flags,
100 base::ProcessHandle peer_handle, 100 base::ProcessHandle peer_handle,
101 const FileSystemOperation::OpenFileCallback& callback) = 0; 101 const FileSystemOperation::OpenFileCallback& callback) = 0;
102 102
103 // Notifies that a file opened by OpenFile (at |path|) is closed. 103 // Notifies that a file opened by OpenFile (at |path|) is closed.
104 virtual void NotifyCloseFile(const FileSystemURL& url) = 0; 104 virtual void NotifyCloseFile(const FileSystemURL& url) = 0;
105 105
106 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. 106 // Modifies the timestamp of a given |url| to |last_access_time| and
107 // |last_modified_time|. Note that unlike 'touch' command of Linux, it
108 // does not create a new file.
109 virtual void TouchFile(
110 const fileapi::FileSystemURL& url,
111 const base::Time& last_access_time,
112 const base::Time& last_modified_time,
113 const FileSystemOperation::StatusCallback& callback) = 0;
107 114
108 protected: 115 protected:
109 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>; 116 friend class base::RefCountedThreadSafe<RemoteFileSystemProxyInterface>;
110 virtual ~RemoteFileSystemProxyInterface() {} 117 virtual ~RemoteFileSystemProxyInterface() {}
111 }; 118 };
112 119
113 } // namespace fileapi 120 } // namespace fileapi
114 121
115 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_ 122 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698