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

Side by Side Diff: webkit/chromeos/fileapi/cros_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: 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_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>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // fileapi::FileSystemMountPointProvider overrides. 53 // fileapi::FileSystemMountPointProvider overrides.
54 virtual void ValidateFileSystemRoot( 54 virtual void ValidateFileSystemRoot(
55 const GURL& origin_url, 55 const GURL& origin_url,
56 fileapi::FileSystemType type, 56 fileapi::FileSystemType type,
57 bool create, 57 bool create,
58 const ValidateFileSystemCallback& callback) OVERRIDE; 58 const ValidateFileSystemCallback& callback) OVERRIDE;
59 virtual base::FilePath GetFileSystemRootPathOnFileThread( 59 virtual base::FilePath GetFileSystemRootPathOnFileThread(
60 const fileapi::FileSystemURL& url, 60 const fileapi::FileSystemURL& url,
61 bool create) OVERRIDE; 61 bool create) OVERRIDE;
62 virtual bool IsAccessAllowed(const fileapi::FileSystemURL& url) OVERRIDE;
63 virtual bool IsRestrictedFileName(const base::FilePath& filename) const OVERRI DE;
64 virtual fileapi::FileSystemFileUtil* GetFileUtil( 62 virtual fileapi::FileSystemFileUtil* GetFileUtil(
65 fileapi::FileSystemType type) OVERRIDE; 63 fileapi::FileSystemType type) OVERRIDE;
66 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 64 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
67 fileapi::FileSystemType type) OVERRIDE; 65 fileapi::FileSystemType type) OVERRIDE;
68 virtual fileapi::FilePermissionPolicy GetPermissionPolicy( 66 virtual fileapi::FilePermissionPolicy GetPermissionPolicy(
69 const fileapi::FileSystemURL& url, 67 const fileapi::FileSystemURL& url,
70 int permissions) const OVERRIDE; 68 int permissions) const OVERRIDE;
71 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( 69 virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
72 const fileapi::FileSystemURL& url, 70 const fileapi::FileSystemURL& url,
73 fileapi::FileSystemContext* context, 71 fileapi::FileSystemContext* context,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Globally visible mount points. System MountPonts instance should outlive 122 // Globally visible mount points. System MountPonts instance should outlive
125 // all CrosMountPointProvider instances, so raw pointer is safe. 123 // all CrosMountPointProvider instances, so raw pointer is safe.
126 fileapi::ExternalMountPoints* system_mount_points_; 124 fileapi::ExternalMountPoints* system_mount_points_;
127 125
128 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 126 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
129 }; 127 };
130 128
131 } // namespace chromeos 129 } // namespace chromeos
132 130
133 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 131 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698