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

Unified Diff: trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.h

Issue 242113007: Revert 264780 "[fsp] Add FileSystemURLParser to the file system ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « no previous file | trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.h
===================================================================
--- trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.h (revision 264799)
+++ trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.h (working copy)
@@ -7,47 +7,21 @@
#include <string>
-#include "base/files/file_path.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-
class Profile;
+namespace base {
+class FilePath;
+} // namespace base
+
namespace chromeos {
namespace file_system_provider {
-
-class ProvidedFileSystemInterface;
-
namespace util {
// Constructs a safe mount point path for the provided file system.
-base::FilePath GetMountPath(Profile* profile,
- std::string extension_id,
- int file_system_id);
+base::FilePath GetMountPointPath(Profile* profile,
+ std::string extension_id,
+ int file_system_id);
-// Finds file system, which is responsible for handling the specified |url| by
-// analysing the mount path.
-// Also, extract the file path from the virtual path to be used by the file
-// system operations.
-class FileSystemURLParser {
- public:
- explicit FileSystemURLParser(const fileapi::FileSystemURL& url);
- virtual ~FileSystemURLParser();
-
- // Parses the |url| passed to the constructor. If parsing succeeds, then
- // returns true. Otherwise, false.
- bool Parse();
-
- ProvidedFileSystemInterface* file_system() const { return file_system_; }
- const base::FilePath& file_path() const { return file_path_; }
-
- private:
- fileapi::FileSystemURL url_;
- ProvidedFileSystemInterface* file_system_;
- base::FilePath file_path_;
-
- DISALLOW_COPY_AND_ASSIGN(FileSystemURLParser);
-};
-
} // namespace util
} // namespace file_system_provider
} // namespace chromeos
« no previous file with comments | « no previous file | trunk/src/chrome/browser/chromeos/file_system_provider/mount_path_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698