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

Side by Side Diff: webkit/fileapi/file_system_operation.h

Issue 8499005: Retry: Merge FileUtilProxy and FileSystemFileUtilProxy using PostTaskAndReply: CreateOrOpen/Close (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FILEAPI_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 kOperationCancel, 244 kOperationCancel,
245 }; 245 };
246 246
247 // A flag to make sure we call operation only once per instance. 247 // A flag to make sure we call operation only once per instance.
248 OperationType pending_operation_; 248 OperationType pending_operation_;
249 #endif 249 #endif
250 250
251 // Proxy for calling file_util_proxy methods. 251 // Proxy for calling file_util_proxy methods.
252 scoped_refptr<base::MessageLoopProxy> proxy_; 252 scoped_refptr<base::MessageLoopProxy> proxy_;
253 253
254 // This can be NULL if the operation is cancelled on the way.
254 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; 255 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_;
255 256
256 FileSystemOperationContext operation_context_; 257 FileSystemOperationContext operation_context_;
257 258
258 base::WeakPtrFactory<FileSystemOperation> weak_factory_; 259 base::WeakPtrFactory<FileSystemOperation> weak_factory_;
259 260
260 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; 261 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_;
261 262
262 // These are all used only by Write(). 263 // These are all used only by Write().
263 friend class FileWriterDelegate; 264 friend class FileWriterDelegate;
(...skipping 20 matching lines...) Expand all
284 285
285 // Length to be truncated. 286 // Length to be truncated.
286 int64 length_; 287 int64 length_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 289 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
289 }; 290 };
290 291
291 } // namespace fileapi 292 } // namespace fileapi
292 293
293 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 294 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698