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

Side by Side Diff: webkit/browser/fileapi/file_system_operation_runner.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_FILE_SYSTEM_OPERATION_RUNNER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_RUNNER_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_RUNNER_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_RUNNER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "webkit/browser/fileapi/file_system_operation.h" 14 #include "webkit/browser/fileapi/file_system_operation.h"
15 #include "webkit/browser/fileapi/file_system_url.h" 15 #include "webkit/browser/fileapi/file_system_url.h"
16 #include "webkit/storage/webkit_storage_export.h" 16 #include "webkit/storage/webkit_storage_export.h"
17 17
18 namespace net {
19 class URLRequestContext;
20 }
21
18 namespace fileapi { 22 namespace fileapi {
19 23
20 class FileSystemURL; 24 class FileSystemURL;
21 class FileSystemContext; 25 class FileSystemContext;
22 26
23 // A central interface for running FileSystem API operations. 27 // A central interface for running FileSystem API operations.
24 // All operation methods take callback and returns OperationID, which is 28 // All operation methods take callback and returns OperationID, which is
25 // an integer value which can be used for cancelling an operation. 29 // an integer value which can be used for cancelling an operation.
26 // All operation methods return kErrorOperationID if running (posting) an 30 // All operation methods return kErrorOperationID if running (posting) an
27 // operation fails, in addition to dispatching the callback with an error 31 // operation fails, in addition to dispatching the callback with an error
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // we can notify observers when we're done. 289 // we can notify observers when we're done.
286 typedef std::map<OperationID, FileSystemURLSet> OperationToURLSet; 290 typedef std::map<OperationID, FileSystemURLSet> OperationToURLSet;
287 OperationToURLSet write_target_urls_; 291 OperationToURLSet write_target_urls_;
288 292
289 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationRunner); 293 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationRunner);
290 }; 294 };
291 295
292 } // namespace fileapi 296 } // namespace fileapi
293 297
294 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_RUNNER_H_ 298 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698