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

Side by Side Diff: storage/browser/fileapi/file_system_operation.h

Issue 1184343002: Recursive operation delegate continues operations with ignoring errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define STORAGE_BROWSER_FILEAPI_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 STORAGE_EXPORT static FileSystemOperation* Create( 61 STORAGE_EXPORT static FileSystemOperation* Create(
62 const FileSystemURL& url, 62 const FileSystemURL& url,
63 FileSystemContext* file_system_context, 63 FileSystemContext* file_system_context,
64 scoped_ptr<FileSystemOperationContext> operation_context); 64 scoped_ptr<FileSystemOperationContext> operation_context);
65 65
66 virtual ~FileSystemOperation() {} 66 virtual ~FileSystemOperation() {}
67 67
68 // Used for CreateFile(), etc. |result| is the return code of the operation. 68 // Used for CreateFile(), etc. |result| is the return code of the operation.
69 typedef base::Callback<void(base::File::Error result)> StatusCallback; 69 typedef base::Callback<void(base::File::Error result)> StatusCallback;
70 70
71 // Called when an error had happened during operation.
72 // |url| is the url of processed entry.
73 // |error| is the error code of the failed operation.
74 typedef base::Callback<void(const FileSystemURL& url,
75 base::File::Error error)> ErrorCallback;
76
71 // Used for GetMetadata(). |result| is the return code of the operation, 77 // Used for GetMetadata(). |result| is the return code of the operation,
72 // |file_info| is the obtained file info. 78 // |file_info| is the obtained file info.
73 typedef base::Callback< 79 typedef base::Callback<
74 void(base::File::Error result, 80 void(base::File::Error result,
75 const base::File::Info& file_info)> GetMetadataCallback; 81 const base::File::Info& file_info)> GetMetadataCallback;
76 82
77 // Used for OpenFile(). |on_close_callback| will be called after the file is 83 // Used for OpenFile(). |on_close_callback| will be called after the file is
78 // closed in the child process. It can be null, if no operation is needed on 84 // closed in the child process. It can be null, if no operation is needed on
79 // closing a file. 85 // closing a file.
80 typedef base::Callback< 86 typedef base::Callback<
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 kOperationOpenFile, 482 kOperationOpenFile,
477 kOperationCloseFile, 483 kOperationCloseFile,
478 kOperationGetLocalPath, 484 kOperationGetLocalPath,
479 kOperationCancel, 485 kOperationCancel,
480 }; 486 };
481 }; 487 };
482 488
483 } // namespace storage 489 } // namespace storage
484 490
485 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_H_ 491 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698