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

Side by Side Diff: chrome/browser/chromeos/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "webkit/browser/fileapi/file_system_backend.h" 14 #include "webkit/browser/fileapi/file_system_backend.h"
15 #include "webkit/browser/quota/special_storage_policy.h" 15 #include "webkit/browser/quota/special_storage_policy.h"
16 #include "webkit/common/fileapi/file_system_types.h" 16 #include "webkit/common/fileapi/file_system_types.h"
17 17
18 namespace storage { 18 namespace storage {
19 class CopyOrMoveFileValidatorFactory; 19 class CopyOrMoveFileValidatorFactory;
20 class ExternalMountPoints; 20 class ExternalMountPoints;
21 class FileSystemURL; 21 class FileSystemURL;
22 class WatcherManager;
22 } // namespace storage 23 } // namespace storage
23 24
24 namespace chromeos { 25 namespace chromeos {
25 26
26 class FileSystemBackendDelegate; 27 class FileSystemBackendDelegate;
27 class FileAccessPermissions; 28 class FileAccessPermissions;
28 29
29 // FileSystemBackend is a Chrome OS specific implementation of 30 // FileSystemBackend is a Chrome OS specific implementation of
30 // ExternalFileSystemBackend. This class is responsible for a 31 // ExternalFileSystemBackend. This class is responsible for a
31 // number of things, including: 32 // number of things, including:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 static bool CanHandleURL(const storage::FileSystemURL& url); 87 static bool CanHandleURL(const storage::FileSystemURL& url);
87 88
88 // storage::FileSystemBackend overrides. 89 // storage::FileSystemBackend overrides.
89 virtual bool CanHandleType(storage::FileSystemType type) const OVERRIDE; 90 virtual bool CanHandleType(storage::FileSystemType type) const OVERRIDE;
90 virtual void Initialize(storage::FileSystemContext* context) OVERRIDE; 91 virtual void Initialize(storage::FileSystemContext* context) OVERRIDE;
91 virtual void ResolveURL(const storage::FileSystemURL& url, 92 virtual void ResolveURL(const storage::FileSystemURL& url,
92 storage::OpenFileSystemMode mode, 93 storage::OpenFileSystemMode mode,
93 const OpenFileSystemCallback& callback) OVERRIDE; 94 const OpenFileSystemCallback& callback) OVERRIDE;
94 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 95 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
95 storage::FileSystemType type) OVERRIDE; 96 storage::FileSystemType type) OVERRIDE;
97 virtual storage::WatcherManager* GetWatcherManager(
98 storage::FileSystemType type) OVERRIDE;
96 virtual storage::CopyOrMoveFileValidatorFactory* 99 virtual storage::CopyOrMoveFileValidatorFactory*
97 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type, 100 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type,
98 base::File::Error* error_code) OVERRIDE; 101 base::File::Error* error_code) OVERRIDE;
99 virtual storage::FileSystemOperation* CreateFileSystemOperation( 102 virtual storage::FileSystemOperation* CreateFileSystemOperation(
100 const storage::FileSystemURL& url, 103 const storage::FileSystemURL& url,
101 storage::FileSystemContext* context, 104 storage::FileSystemContext* context,
102 base::File::Error* error_code) const OVERRIDE; 105 base::File::Error* error_code) const OVERRIDE;
103 virtual bool SupportsStreaming( 106 virtual bool SupportsStreaming(
104 const storage::FileSystemURL& url) const OVERRIDE; 107 const storage::FileSystemURL& url) const OVERRIDE;
105 virtual bool HasInplaceCopyImplementation( 108 virtual bool HasInplaceCopyImplementation(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Globally visible mount points. System MountPonts instance should outlive 162 // Globally visible mount points. System MountPonts instance should outlive
160 // all FileSystemBackend instances, so raw pointer is safe. 163 // all FileSystemBackend instances, so raw pointer is safe.
161 storage::ExternalMountPoints* system_mount_points_; 164 storage::ExternalMountPoints* system_mount_points_;
162 165
163 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); 166 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend);
164 }; 167 };
165 168
166 } // namespace chromeos 169 } // namespace chromeos
167 170
168 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 171 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698