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

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

Issue 10600013: Wired support for file truncating with RemoteFileSystemOperation::OpenFile() method (case when base… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" 8 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
9 #include "webkit/fileapi/file_system_operation_interface.h" 9 #include "webkit/fileapi/file_system_operation_interface.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; 58 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE;
59 virtual void TouchFile(const GURL& path, 59 virtual void TouchFile(const GURL& path,
60 const base::Time& last_access_time, 60 const base::Time& last_access_time,
61 const base::Time& last_modified_time, 61 const base::Time& last_modified_time,
62 const StatusCallback& callback) OVERRIDE; 62 const StatusCallback& callback) OVERRIDE;
63 virtual void OpenFile( 63 virtual void OpenFile(
64 const GURL& path, 64 const GURL& path,
65 int file_flags, 65 int file_flags,
66 base::ProcessHandle peer_handle, 66 base::ProcessHandle peer_handle,
67 const OpenFileCallback& callback) OVERRIDE; 67 const OpenFileCallback& callback) OVERRIDE;
68 virtual void NotifyFileClosed(const GURL& path,
69 const StatusCallback& callback) OVERRIDE;
68 virtual fileapi::FileSystemOperation* AsFileSystemOperation() OVERRIDE; 70 virtual fileapi::FileSystemOperation* AsFileSystemOperation() OVERRIDE;
69 virtual void CreateSnapshotFile( 71 virtual void CreateSnapshotFile(
70 const GURL& path, 72 const GURL& path,
71 const SnapshotFileCallback& callback) OVERRIDE; 73 const SnapshotFileCallback& callback) OVERRIDE;
72 74
73 private: 75 private:
74 friend class CrosMountPointProvider; 76 friend class CrosMountPointProvider;
75 77
76 RemoteFileSystemOperation( 78 RemoteFileSystemOperation(
77 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy); 79 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // A flag to make sure we call operation only once per instance. 123 // A flag to make sure we call operation only once per instance.
122 OperationType pending_operation_; 124 OperationType pending_operation_;
123 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_; 125 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); 127 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation);
126 }; 128 };
127 129
128 } // namespace chromeos 130 } // namespace chromeos
129 131
130 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 132 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698