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

Unified Diff: webkit/fileapi/file_system_path_manager.h

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/file_system_operation_write_unittest.cc ('k') | webkit/fileapi/file_system_path_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_path_manager.h
===================================================================
--- webkit/fileapi/file_system_path_manager.h (revision 81454)
+++ webkit/fileapi/file_system_path_manager.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -68,14 +68,6 @@
FileSystemType type,
const FilePath& virtual_path,
bool create);
- // Cracks the given |path|, retrieves the information embedded in the path
- // and populates |origin_url|, |type| and |virtual_path|. The |virtual_path|
- // is a sandboxed path in the file system, i.e. the relative path to the
- // filesystem root for the given domain and type.
- bool CrackFileSystemPath(const FilePath& path,
- GURL* origin_url,
- FileSystemType* type,
- FilePath* virtual_path) const;
// Returns true if the given |url|'s scheme is allowed to access
// filesystem.
@@ -89,6 +81,9 @@
bool IsRestrictedFileName(FileSystemType type,
const FilePath& filename);
+ // Checks if an origin has access to a particular filesystem type.
+ bool IsAllowedFileSystemType(GURL origin, FileSystemType type);
+
SandboxMountPointProvider* sandbox_provider() const {
return sandbox_provider_.get();
}
« no previous file with comments | « webkit/fileapi/file_system_operation_write_unittest.cc ('k') | webkit/fileapi/file_system_path_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698