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

Side by Side Diff: webkit/browser/fileapi/file_system_backend.h

Issue 23601005: Deprecate FileSystemBackend::GetFileUtil() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 (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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // and if it can access (or create) the root directory. 62 // and if it can access (or create) the root directory.
63 // If |mode| is CREATE_IF_NONEXISTENT calling this may also create 63 // If |mode| is CREATE_IF_NONEXISTENT calling this may also create
64 // the root directory (and/or related database entries etc) for 64 // the root directory (and/or related database entries etc) for
65 // the filesystem if it doesn't exist. 65 // the filesystem if it doesn't exist.
66 virtual void OpenFileSystem( 66 virtual void OpenFileSystem(
67 const GURL& origin_url, 67 const GURL& origin_url,
68 FileSystemType type, 68 FileSystemType type,
69 OpenFileSystemMode mode, 69 OpenFileSystemMode mode,
70 const OpenFileSystemCallback& callback) = 0; 70 const OpenFileSystemCallback& callback) = 0;
71 71
72 // Returns the specialized FileSystemFileUtil for this backend.
73 // It is ok to return NULL if the filesystem doesn't support synchronous
74 // version of FileUtil.
75 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) = 0;
76
77 // Returns the specialized AsyncFileUtil for this backend. 72 // Returns the specialized AsyncFileUtil for this backend.
78 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) = 0; 73 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) = 0;
79 74
80 // Returns the specialized CopyOrMoveFileValidatorFactory for this backend 75 // Returns the specialized CopyOrMoveFileValidatorFactory for this backend
81 // and |type|. If |error_code| is PLATFORM_FILE_OK and the result is NULL, 76 // and |type|. If |error_code| is PLATFORM_FILE_OK and the result is NULL,
82 // then no validator is required. 77 // then no validator is required.
83 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 78 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
84 FileSystemType type, base::PlatformFileError* error_code) = 0; 79 FileSystemType type, base::PlatformFileError* error_code) = 0;
85 80
86 // Returns a new instance of the specialized FileSystemOperation for this 81 // Returns a new instance of the specialized FileSystemOperation for this
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const std::string& extension_id) = 0; 141 const std::string& extension_id) = 0;
147 // Gets virtual path by known filesystem path. Returns false when filesystem 142 // Gets virtual path by known filesystem path. Returns false when filesystem
148 // path is not exposed by this provider. 143 // path is not exposed by this provider.
149 virtual bool GetVirtualPath(const base::FilePath& file_system_path, 144 virtual bool GetVirtualPath(const base::FilePath& file_system_path,
150 base::FilePath* virtual_path) = 0; 145 base::FilePath* virtual_path) = 0;
151 }; 146 };
152 147
153 } // namespace fileapi 148 } // namespace fileapi
154 149
155 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 150 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/local/sync_file_system_backend.cc ('k') | webkit/browser/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698