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

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

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 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 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_SANDBOX_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 virtual ~SandboxMountPointProvider(); 30 virtual ~SandboxMountPointProvider();
31 31
32 // Checks if access to |virtual_path| is allowed from |origin_url|. 32 // Checks if access to |virtual_path| is allowed from |origin_url|.
33 virtual bool IsAccessAllowed(const GURL& origin_url, 33 virtual bool IsAccessAllowed(const GURL& origin_url,
34 FileSystemType type, 34 FileSystemType type,
35 const FilePath& virtual_path); 35 const FilePath& virtual_path);
36 36
37 // Retrieves the root path for the given |origin_url| and |type|, and 37 // Retrieves the root path for the given |origin_url| and |type|, and
38 // calls the given |callback| with the root path and name. 38 // calls the given |callback| with the root path and name.
39 // If |create| is true this also creates the directory if it doesn't exist. 39 // If |create| is true this also creates the directory if it doesn't exist.
40 virtual void GetFileSystemRootPath( 40 virtual void ValidateFileSystemRootAndGetURL(
41 const GURL& origin_url, 41 const GURL& origin_url,
42 FileSystemType type, 42 FileSystemType type,
43 bool create, 43 bool create,
44 FileSystemPathManager::GetRootPathCallback* callback); 44 FileSystemPathManager::GetRootPathCallback* callback);
45 45
46 // Like GetFileSystemRootPath, but synchronous, and can be called only while 46 // Like GetFileSystemRootPath, but synchronous, and can be called only while
47 // running on the file thread. 47 // running on the file thread.
48 virtual FilePath GetFileSystemRootPathOnFileThread( 48 virtual FilePath ValidateFileSystemRootAndGetPathOnFileThread(
49 const GURL& origin_url, 49 const GURL& origin_url,
50 FileSystemType type, 50 FileSystemType type,
51 const FilePath& unused, 51 const FilePath& unused,
52 bool create); 52 bool create);
53 53
54 // The FileSystem directory name. 54 // The FileSystem directory name.
55 static const FilePath::CharType kFileSystemDirectory[]; 55 static const FilePath::CharType kFileSystemDirectory[];
56 56
57 const FilePath& base_path() const { 57 const FilePath& base_path() const {
58 return base_path_; 58 return base_path_;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 const FilePath base_path_; 116 const FilePath base_path_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); 118 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider);
119 }; 119 };
120 120
121 } // namespace fileapi 121 } // namespace fileapi
122 122
123 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 123 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
124 124
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698