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

Side by Side Diff: webkit/fileapi/isolated_mount_point_provider.h

Issue 12193007: Deprecate MountPointProvider::IsAccessAllowed in favor of GetPermissionPolicy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 10 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_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/fileapi/file_system_mount_point_provider.h" 9 #include "webkit/fileapi/file_system_mount_point_provider.h"
10 #include "webkit/fileapi/media/mtp_device_file_system_config.h" 10 #include "webkit/fileapi/media/mtp_device_file_system_config.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // FileSystemMountPointProvider implementation. 23 // FileSystemMountPointProvider implementation.
24 virtual void ValidateFileSystemRoot( 24 virtual void ValidateFileSystemRoot(
25 const GURL& origin_url, 25 const GURL& origin_url,
26 FileSystemType type, 26 FileSystemType type,
27 bool create, 27 bool create,
28 const ValidateFileSystemCallback& callback) OVERRIDE; 28 const ValidateFileSystemCallback& callback) OVERRIDE;
29 virtual base::FilePath GetFileSystemRootPathOnFileThread( 29 virtual base::FilePath GetFileSystemRootPathOnFileThread(
30 const FileSystemURL& url, 30 const FileSystemURL& url,
31 bool create) OVERRIDE; 31 bool create) OVERRIDE;
32 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE;
33 virtual bool IsRestrictedFileName(const base::FilePath& filename) const OVERRI DE;
34 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; 32 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
35 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 33 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
36 virtual FilePermissionPolicy GetPermissionPolicy( 34 virtual FilePermissionPolicy GetPermissionPolicy(
37 const FileSystemURL& url, 35 const FileSystemURL& url,
38 int permissions) const OVERRIDE; 36 int permissions) const OVERRIDE;
39 virtual FileSystemOperation* CreateFileSystemOperation( 37 virtual FileSystemOperation* CreateFileSystemOperation(
40 const FileSystemURL& url, 38 const FileSystemURL& url,
41 FileSystemContext* context, 39 FileSystemContext* context,
42 base::PlatformFileError* error_code) const OVERRIDE; 40 base::PlatformFileError* error_code) const OVERRIDE;
43 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 41 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
(...skipping 23 matching lines...) Expand all
67 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_; 65 scoped_ptr<AsyncFileUtilAdapter> native_media_file_util_;
68 66
69 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) 67 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
70 scoped_ptr<AsyncFileUtilAdapter> device_media_file_util_; 68 scoped_ptr<AsyncFileUtilAdapter> device_media_file_util_;
71 #endif 69 #endif
72 }; 70 };
73 71
74 } // namespace fileapi 72 } // namespace fileapi
75 73
76 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 74 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698