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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.h

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 years, 8 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_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "webkit/fileapi/file_system_mount_point_provider.h" 16 #include "webkit/fileapi/file_system_mount_point_provider.h"
17 #include "webkit/fileapi/file_system_types.h"
17 #include "webkit/quota/special_storage_policy.h" 18 #include "webkit/quota/special_storage_policy.h"
18 #include "webkit/storage/webkit_storage_export.h" 19 #include "webkit/storage/webkit_storage_export.h"
19 20
20 namespace fileapi { 21 namespace fileapi {
21 class AsyncFileUtilAdapter; 22 class AsyncFileUtilAdapter;
22 class CopyOrMoveFileValidatorFactory; 23 class CopyOrMoveFileValidatorFactory;
23 class ExternalMountPoints; 24 class ExternalMountPoints;
24 class FileSystemFileUtil; 25 class FileSystemFileUtil;
25 class FileSystemURL; 26 class FileSystemURL;
26 class IsolatedContext; 27 class IsolatedContext;
(...skipping 18 matching lines...) Expand all
45 scoped_refptr<fileapi::ExternalMountPoints> mount_points, 46 scoped_refptr<fileapi::ExternalMountPoints> mount_points,
46 fileapi::ExternalMountPoints* system_mount_points); 47 fileapi::ExternalMountPoints* system_mount_points);
47 virtual ~CrosMountPointProvider(); 48 virtual ~CrosMountPointProvider();
48 49
49 // Returns true if CrosMountpointProvider can handle |url|, i.e. its 50 // Returns true if CrosMountpointProvider can handle |url|, i.e. its
50 // file system type matches with what this provider supports. 51 // file system type matches with what this provider supports.
51 // This could be called on any threads. 52 // This could be called on any threads.
52 static bool CanHandleURL(const fileapi::FileSystemURL& url); 53 static bool CanHandleURL(const fileapi::FileSystemURL& url);
53 54
54 // fileapi::FileSystemMountPointProvider overrides. 55 // fileapi::FileSystemMountPointProvider overrides.
56 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE;
55 virtual void ValidateFileSystemRoot( 57 virtual void ValidateFileSystemRoot(
56 const GURL& origin_url, 58 const GURL& origin_url,
57 fileapi::FileSystemType type, 59 fileapi::FileSystemType type,
58 bool create, 60 bool create,
59 const ValidateFileSystemCallback& callback) OVERRIDE; 61 const ValidateFileSystemCallback& callback) OVERRIDE;
60 virtual base::FilePath GetFileSystemRootPathOnFileThread( 62 virtual base::FilePath GetFileSystemRootPathOnFileThread(
61 const fileapi::FileSystemURL& url, 63 const fileapi::FileSystemURL& url,
62 bool create) OVERRIDE; 64 bool create) OVERRIDE;
63 virtual fileapi::FileSystemFileUtil* GetFileUtil( 65 virtual fileapi::FileSystemFileUtil* GetFileUtil(
64 fileapi::FileSystemType type) OVERRIDE; 66 fileapi::FileSystemType type) OVERRIDE;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Globally visible mount points. System MountPonts instance should outlive 135 // Globally visible mount points. System MountPonts instance should outlive
134 // all CrosMountPointProvider instances, so raw pointer is safe. 136 // all CrosMountPointProvider instances, so raw pointer is safe.
135 fileapi::ExternalMountPoints* system_mount_points_; 137 fileapi::ExternalMountPoints* system_mount_points_;
136 138
137 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 139 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
138 }; 140 };
139 141
140 } // namespace chromeos 142 } // namespace chromeos
141 143
142 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 144 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/blob/blob_url_request_job_unittest.cc ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698