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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_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 | « no previous file | chrome/browser/chromeos/gdata/drive_file_system_proxy.cc » ('j') | 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 CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_
7 7
8 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" 8 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h"
9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" 10 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void CreateWritableSnapshotFile( 70 virtual void CreateWritableSnapshotFile(
71 const fileapi::FileSystemURL& url, 71 const fileapi::FileSystemURL& url,
72 const fileapi::WritableSnapshotFile& callback) OVERRIDE; 72 const fileapi::WritableSnapshotFile& callback) OVERRIDE;
73 virtual void OpenFile( 73 virtual void OpenFile(
74 const fileapi::FileSystemURL& url, 74 const fileapi::FileSystemURL& url,
75 int file_flags, 75 int file_flags,
76 base::ProcessHandle peer_handle, 76 base::ProcessHandle peer_handle,
77 const fileapi::FileSystemOperation::OpenFileCallback& 77 const fileapi::FileSystemOperation::OpenFileCallback&
78 callback) OVERRIDE; 78 callback) OVERRIDE;
79 virtual void NotifyCloseFile(const fileapi::FileSystemURL& url) OVERRIDE; 79 virtual void NotifyCloseFile(const fileapi::FileSystemURL& url) OVERRIDE;
80 // TODO(zelidrag): More methods to follow as we implement other parts of FSO. 80 virtual void TouchFile(
81 const fileapi::FileSystemURL& url,
82 const base::Time& last_access_time,
83 const base::Time& last_modified_time,
84 const fileapi::FileSystemOperation::StatusCallback& callback)
85 OVERRIDE;
81 86
82 protected: 87 protected:
83 virtual ~DriveFileSystemProxy(); 88 virtual ~DriveFileSystemProxy();
84 89
85 private: 90 private:
86 // Checks if a given |url| belongs to this file system. If it does, 91 // Checks if a given |url| belongs to this file system. If it does,
87 // the call will return true and fill in |file_path| with a file path of 92 // the call will return true and fill in |file_path| with a file path of
88 // a corresponding element within this file system. 93 // a corresponding element within this file system.
89 static bool ValidateUrl(const fileapi::FileSystemURL& url, 94 static bool ValidateUrl(const fileapi::FileSystemURL& url,
90 FilePath* file_path); 95 FilePath* file_path);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // DriveFileSystem is owned by Profile, which outlives DriveFileSystemProxy, 188 // DriveFileSystem is owned by Profile, which outlives DriveFileSystemProxy,
184 // which is owned by CrosMountPointProvider (i.e. by the time Profile is 189 // which is owned by CrosMountPointProvider (i.e. by the time Profile is
185 // removed, the file manager is already gone). Hence it's safe to use this as 190 // removed, the file manager is already gone). Hence it's safe to use this as
186 // a raw pointer. 191 // a raw pointer.
187 DriveFileSystemInterface* file_system_; 192 DriveFileSystemInterface* file_system_;
188 }; 193 };
189 194
190 } // namespace chromeos 195 } // namespace chromeos
191 196
192 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698