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

Unified Diff: storage/browser/fileapi/recursive_operation_delegate.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: storage/browser/fileapi/recursive_operation_delegate.h
diff --git a/webkit/browser/fileapi/recursive_operation_delegate.h b/storage/browser/fileapi/recursive_operation_delegate.h
similarity index 94%
rename from webkit/browser/fileapi/recursive_operation_delegate.h
rename to storage/browser/fileapi/recursive_operation_delegate.h
index 11f8da044331b61ca783632c728edb7751193b0f..346dd485772abca3183effdc47c299f11f46807a 100644
--- a/webkit/browser/fileapi/recursive_operation_delegate.h
+++ b/storage/browser/fileapi/recursive_operation_delegate.h
@@ -11,10 +11,10 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
-#include "webkit/browser/fileapi/file_system_operation.h"
-#include "webkit/browser/fileapi/file_system_url.h"
+#include "storage/browser/fileapi/file_system_operation.h"
+#include "storage/browser/fileapi/file_system_url.h"
-namespace fileapi {
+namespace storage {
class FileSystemContext;
class FileSystemOperationRunner;
@@ -24,7 +24,7 @@ class FileSystemOperationRunner;
// In short, each subclass should override ProcessFile and ProcessDirectory
// to process a directory or a file. To start the recursive operation it
// should also call StartRecursiveOperation.
-class WEBKIT_STORAGE_BROWSER_EXPORT RecursiveOperationDelegate
+class STORAGE_EXPORT RecursiveOperationDelegate
: public base::SupportsWeakPtr<RecursiveOperationDelegate> {
public:
typedef FileSystemOperation::StatusCallback StatusCallback;
@@ -50,7 +50,6 @@ class WEBKIT_STORAGE_BROWSER_EXPORT RecursiveOperationDelegate
virtual void ProcessDirectory(const FileSystemURL& url,
const StatusCallback& callback) = 0;
-
// This is called each time after files and subdirectories for a
// directory is processed while recursively performing an operation.
virtual void PostProcessDirectory(const FileSystemURL& url,
@@ -120,8 +119,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT RecursiveOperationDelegate
virtual void OnCancel();
private:
- void DidTryProcessFile(const FileSystemURL& root,
- base::File::Error error);
+ void DidTryProcessFile(const FileSystemURL& root, base::File::Error error);
void ProcessNextDirectory();
void DidProcessDirectory(base::File::Error error);
void DidReadDirectory(const FileSystemURL& parent,
@@ -147,6 +145,6 @@ class WEBKIT_STORAGE_BROWSER_EXPORT RecursiveOperationDelegate
DISALLOW_COPY_AND_ASSIGN(RecursiveOperationDelegate);
};
-} // namespace fileapi
+} // namespace storage
#endif // WEBKIT_BROWSER_FILEAPI_RECURSIVE_OPERATION_DELEGATE_H_
« no previous file with comments | « storage/browser/fileapi/quota/quota_reservation_manager.cc ('k') | storage/browser/fileapi/recursive_operation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698