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

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

Issue 8311010: base::Bind: Convert FileUtilProxy::CreateOrOpenCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « 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"
11 #include "base/file_util_proxy.h" 11 #include "base/file_util_proxy.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_callback_factory.h" 14 #include "base/memory/scoped_callback_factory.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop_proxy.h" 17 #include "base/message_loop_proxy.h"
17 #include "base/platform_file.h" 18 #include "base/platform_file.h"
18 #include "base/process.h" 19 #include "base/process.h"
19 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
20 #include "webkit/fileapi/file_system_operation_context.h" 21 #include "webkit/fileapi/file_system_operation_context.h"
21 #include "webkit/fileapi/file_system_types.h" 22 #include "webkit/fileapi/file_system_types.h"
22 #include "webkit/quota/quota_manager.h" 23 #include "webkit/quota/quota_manager.h"
23 24
24 namespace base { 25 namespace base {
25 class Time; 26 class Time;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 #endif 235 #endif
235 236
236 // Proxy for calling file_util_proxy methods. 237 // Proxy for calling file_util_proxy methods.
237 scoped_refptr<base::MessageLoopProxy> proxy_; 238 scoped_refptr<base::MessageLoopProxy> proxy_;
238 239
239 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; 240 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_;
240 241
241 FileSystemOperationContext file_system_operation_context_; 242 FileSystemOperationContext file_system_operation_context_;
242 243
243 base::ScopedCallbackFactory<FileSystemOperation> callback_factory_; 244 base::ScopedCallbackFactory<FileSystemOperation> callback_factory_;
245 base::WeakPtrFactory<FileSystemOperation> weak_factory_;
244 246
245 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; 247 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_;
246 248
247 // These are all used only by Write(). 249 // These are all used only by Write().
248 friend class FileWriterDelegate; 250 friend class FileWriterDelegate;
249 scoped_ptr<FileWriterDelegate> file_writer_delegate_; 251 scoped_ptr<FileWriterDelegate> file_writer_delegate_;
250 scoped_ptr<net::URLRequest> blob_request_; 252 scoped_ptr<net::URLRequest> blob_request_;
251 scoped_ptr<FileSystemOperation> cancel_operation_; 253 scoped_ptr<FileSystemOperation> cancel_operation_;
252 254
253 // Used only by OpenFile, in order to clone the file handle back to the 255 // Used only by OpenFile, in order to clone the file handle back to the
(...skipping 15 matching lines...) Expand all
269 271
270 // Length to be truncated. 272 // Length to be truncated.
271 int64 length_; 273 int64 length_;
272 274
273 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 275 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
274 }; 276 };
275 277
276 } // namespace fileapi 278 } // namespace fileapi
277 279
278 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 280 #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