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

Side by Side Diff: webkit/browser/fileapi/file_system_operation_impl.h

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 scoped_ptr<net::URLRequest> blob_request, 62 scoped_ptr<net::URLRequest> blob_request,
63 const WriteCallback& callback) OVERRIDE; 63 const WriteCallback& callback) OVERRIDE;
64 virtual void Truncate(const FileSystemURL& url, int64 length, 64 virtual void Truncate(const FileSystemURL& url, int64 length,
65 const StatusCallback& callback) OVERRIDE; 65 const StatusCallback& callback) OVERRIDE;
66 virtual void TouchFile(const FileSystemURL& url, 66 virtual void TouchFile(const FileSystemURL& url,
67 const base::Time& last_access_time, 67 const base::Time& last_access_time,
68 const base::Time& last_modified_time, 68 const base::Time& last_modified_time,
69 const StatusCallback& callback) OVERRIDE; 69 const StatusCallback& callback) OVERRIDE;
70 virtual void OpenFile(const FileSystemURL& url, 70 virtual void OpenFile(const FileSystemURL& url,
71 int file_flags, 71 int file_flags,
72 base::ProcessHandle peer_handle,
73 const OpenFileCallback& callback) OVERRIDE; 72 const OpenFileCallback& callback) OVERRIDE;
74 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE; 73 virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE;
75 virtual void CreateSnapshotFile( 74 virtual void CreateSnapshotFile(
76 const FileSystemURL& path, 75 const FileSystemURL& path,
77 const SnapshotFileCallback& callback) OVERRIDE; 76 const SnapshotFileCallback& callback) OVERRIDE;
78 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path, 77 virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path,
79 const FileSystemURL& dest_url, 78 const FileSystemURL& dest_url,
80 const StatusCallback& callback) OVERRIDE; 79 const StatusCallback& callback) OVERRIDE;
81 virtual void RemoveFile(const FileSystemURL& url, 80 virtual void RemoveFile(const FileSystemURL& url,
82 const StatusCallback& callback) OVERRIDE; 81 const StatusCallback& callback) OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_refptr<FileSystemContext> file_system_context_; 187 scoped_refptr<FileSystemContext> file_system_context_;
189 188
190 scoped_ptr<FileSystemOperationContext> operation_context_; 189 scoped_ptr<FileSystemOperationContext> operation_context_;
191 AsyncFileUtil* async_file_util_; // Not owned. 190 AsyncFileUtil* async_file_util_; // Not owned.
192 191
193 scoped_ptr<FileWriterDelegate> file_writer_delegate_; 192 scoped_ptr<FileWriterDelegate> file_writer_delegate_;
194 scoped_ptr<RecursiveOperationDelegate> recursive_operation_delegate_; 193 scoped_ptr<RecursiveOperationDelegate> recursive_operation_delegate_;
195 194
196 StatusCallback cancel_callback_; 195 StatusCallback cancel_callback_;
197 196
198 // Used only by OpenFile, in order to clone the file handle back to the
199 // requesting process.
200 base::ProcessHandle peer_handle_;
201
202 // A flag to make sure we call operation only once per instance. 197 // A flag to make sure we call operation only once per instance.
203 OperationType pending_operation_; 198 OperationType pending_operation_;
204 199
205 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; 200 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_;
206 201
207 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); 202 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl);
208 }; 203 };
209 204
210 } // namespace fileapi 205 } // namespace fileapi
211 206
212 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ 207 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_operation.h ('k') | webkit/browser/fileapi/file_system_operation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698