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

Side by Side Diff: webkit/browser/fileapi/syncable/syncable_file_system_operation.h

Issue 16311010: Make FileSystemOperation::Write take closure-friendly parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void DirectoryExists(const fileapi::FileSystemURL& url, 50 virtual void DirectoryExists(const fileapi::FileSystemURL& url,
51 const StatusCallback& callback) OVERRIDE; 51 const StatusCallback& callback) OVERRIDE;
52 virtual void FileExists(const fileapi::FileSystemURL& url, 52 virtual void FileExists(const fileapi::FileSystemURL& url,
53 const StatusCallback& callback) OVERRIDE; 53 const StatusCallback& callback) OVERRIDE;
54 virtual void GetMetadata(const fileapi::FileSystemURL& url, 54 virtual void GetMetadata(const fileapi::FileSystemURL& url,
55 const GetMetadataCallback& callback) OVERRIDE; 55 const GetMetadataCallback& callback) OVERRIDE;
56 virtual void ReadDirectory(const fileapi::FileSystemURL& url, 56 virtual void ReadDirectory(const fileapi::FileSystemURL& url,
57 const ReadDirectoryCallback& callback) OVERRIDE; 57 const ReadDirectoryCallback& callback) OVERRIDE;
58 virtual void Remove(const fileapi::FileSystemURL& url, bool recursive, 58 virtual void Remove(const fileapi::FileSystemURL& url, bool recursive,
59 const StatusCallback& callback) OVERRIDE; 59 const StatusCallback& callback) OVERRIDE;
60 virtual void Write(const net::URLRequestContext* url_request_context, 60 virtual void Write(const fileapi::FileSystemURL& url,
61 const fileapi::FileSystemURL& url, 61 scoped_ptr<fileapi::FileWriterDelegate> writer_delegate,
62 const GURL& blob_url, 62 scoped_ptr<net::URLRequest> blob_request,
63 int64 offset,
64 const WriteCallback& callback) OVERRIDE; 63 const WriteCallback& callback) OVERRIDE;
65 virtual void Truncate(const fileapi::FileSystemURL& url, int64 length, 64 virtual void Truncate(const fileapi::FileSystemURL& url, int64 length,
66 const StatusCallback& callback) OVERRIDE; 65 const StatusCallback& callback) OVERRIDE;
67 virtual void TouchFile(const fileapi::FileSystemURL& url, 66 virtual void TouchFile(const fileapi::FileSystemURL& url,
68 const base::Time& last_access_time, 67 const base::Time& last_access_time,
69 const base::Time& last_modified_time, 68 const base::Time& last_modified_time,
70 const StatusCallback& callback) OVERRIDE; 69 const StatusCallback& callback) OVERRIDE;
71 virtual void OpenFile(const fileapi::FileSystemURL& url, 70 virtual void OpenFile(const fileapi::FileSystemURL& url,
72 int file_flags, 71 int file_flags,
73 base::ProcessHandle peer_handle, 72 base::ProcessHandle peer_handle,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 StatusCallback completion_callback_; 113 StatusCallback completion_callback_;
115 114
116 bool is_directory_operation_enabled_; 115 bool is_directory_operation_enabled_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); 117 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation);
119 }; 118 };
120 119
121 } // namespace sync_file_system 120 } // namespace sync_file_system
122 121
123 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 122 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698