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

Unified Diff: webkit/browser/fileapi/file_system_backend.h

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files. 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: webkit/browser/fileapi/file_system_backend.h
diff --git a/webkit/browser/fileapi/file_system_backend.h b/webkit/browser/fileapi/file_system_backend.h
index 98537453b1e443effa379279a11bae0c8f7323ad..7f0220d9b9a160130793748a1a53be0b667332e0 100644
--- a/webkit/browser/fileapi/file_system_backend.h
+++ b/webkit/browser/fileapi/file_system_backend.h
@@ -33,6 +33,7 @@ class FileSystemContext;
class FileSystemFileUtil;
class FileSystemOperation;
class FileSystemQuotaUtil;
+class WatcherManager;
// An interface for defining a file system backend.
//
@@ -70,6 +71,9 @@ class STORAGE_EXPORT FileSystemBackend {
// Returns the specialized AsyncFileUtil for this backend.
virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) = 0;
+ // Returns the specialized WatcherManager for this backend.
+ virtual WatcherManager* GetWatcherManager(FileSystemType type) = 0;
+
// Returns the specialized CopyOrMoveFileValidatorFactory for this backend
// and |type|. If |error_code| is File::FILE_OK and the result is NULL,
// then no validator is required.
@@ -105,6 +109,8 @@ class STORAGE_EXPORT FileSystemBackend {
// ERR_UPLOAD_FILE_CHANGED error.
// This method itself does *not* check if the given path exists and is a
// regular file.
+ // The |length| argument says how many bytes are going to be read using the
+ // instance of the file stream reader. If unknown, then equal to -1.
virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
const FileSystemURL& url,
int64 offset,

Powered by Google App Engine
This is Rietveld 408576698