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

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

Issue 6603034: Stop returning the true root path of each filesystem from openFileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
7
8 #include "base/file_path.h"
9 #include "googleurl/src/gurl.h"
10 #include "webkit/fileapi/file_system_path_manager.h"
11 #include "webkit/fileapi/file_system_types.h"
12
13 namespace fileapi {
14
15 // An interface to provide local filesystem paths.
16
17 class FileSystemMountPointProvider {
18 public:
19 virtual ~FileSystemMountPointProvider() {}
20
21 // Checks if mount point access is allowed from |origin_url|.
22 virtual bool IsAccessAllowed(const GURL& origin_url) = 0;
23
24 // Retrieves the root path for the given |origin_url| and |type|, and
25 // calls the given |callback| with the root path and name.
26 // If |create| is true this also creates the directory if it doesn't exist.
27 virtual void GetFileSystemRootPath(const GURL& origin_url,
28 FileSystemType type,
29 bool create,
30 FileSystemPathManager::GetRootPathCallback*
31 callback) = 0;
32
33 // Like GetFileSystemRootPath, but synchronous, and can be called only while
34 // running on the file thread.
35 virtual FilePath GetFileSystemRootPathOnFileThread(const GURL& origin_url,
36 FileSystemType type,
37 bool create) = 0;
38
39 // Checks if a given |name| contains any restricted names/chars in it.
40 virtual bool IsRestrictedFileName(const FilePath& filename) = 0;
kinuko 2011/03/14 11:03:57 Can this be a const method? Can we add a comment
ericu 2011/03/15 02:43:11 Fixed.
41
42 };
43
44 } // namespace fileapi
45
46 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698