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

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

Issue 19632004: FileAPI: Add Initialize() function to FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove const qualifier Created 7 years, 5 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_SANDBOX_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual bool HasFileSystemType(FileSystemType type) const = 0; 66 virtual bool HasFileSystemType(FileSystemType type) const = 0;
67 }; 67 };
68 68
69 SandboxFileSystemBackend( 69 SandboxFileSystemBackend(
70 SandboxContext* sandbox_context, 70 SandboxContext* sandbox_context,
71 const FileSystemOptions& file_system_options); 71 const FileSystemOptions& file_system_options);
72 virtual ~SandboxFileSystemBackend(); 72 virtual ~SandboxFileSystemBackend();
73 73
74 // FileSystemBackend overrides. 74 // FileSystemBackend overrides.
75 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; 75 virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
76 virtual void InitializeFileSystem( 76 virtual void Initialize(FileSystemContext* context) OVERRIDE;
77 virtual void OpenFileSystem(
77 const GURL& origin_url, 78 const GURL& origin_url,
78 FileSystemType type, 79 FileSystemType type,
79 OpenFileSystemMode mode, 80 OpenFileSystemMode mode,
80 FileSystemContext* context, 81 const OpenFileSystemCallback& callback) OVERRIDE;
81 const InitializeFileSystemCallback& callback) OVERRIDE;
82 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; 82 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
83 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 83 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
84 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 84 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
85 FileSystemType type, 85 FileSystemType type,
86 base::PlatformFileError* error_code) OVERRIDE; 86 base::PlatformFileError* error_code) OVERRIDE;
87 virtual FileSystemOperation* CreateFileSystemOperation( 87 virtual FileSystemOperation* CreateFileSystemOperation(
88 const FileSystemURL& url, 88 const FileSystemURL& url,
89 FileSystemContext* context, 89 FileSystemContext* context,
90 base::PlatformFileError* error_code) const OVERRIDE; 90 base::PlatformFileError* error_code) const OVERRIDE;
91 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 91 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 std::set<std::pair<GURL, FileSystemType> > sticky_dirty_origins_; 223 std::set<std::pair<GURL, FileSystemType> > sticky_dirty_origins_;
224 224
225 base::WeakPtrFactory<SandboxFileSystemBackend> weak_factory_; 225 base::WeakPtrFactory<SandboxFileSystemBackend> weak_factory_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); 227 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend);
228 }; 228 };
229 229
230 } // namespace fileapi 230 } // namespace fileapi
231 231
232 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ 232 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_file_system_backend.cc ('k') | webkit/browser/fileapi/sandbox_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698