| OLD | NEW |
| 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 STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 public: | 79 public: |
| 80 FileSystemURL(); | 80 FileSystemURL(); |
| 81 ~FileSystemURL(); | 81 ~FileSystemURL(); |
| 82 | 82 |
| 83 // Methods for creating FileSystemURL without attempting to crack them. | 83 // Methods for creating FileSystemURL without attempting to crack them. |
| 84 // Should be used only in tests. | 84 // Should be used only in tests. |
| 85 static FileSystemURL CreateForTest(const GURL& url); | 85 static FileSystemURL CreateForTest(const GURL& url); |
| 86 static FileSystemURL CreateForTest(const GURL& origin, | 86 static FileSystemURL CreateForTest(const GURL& origin, |
| 87 FileSystemType mount_type, | 87 FileSystemType mount_type, |
| 88 const base::FilePath& virtual_path); | 88 const base::FilePath& virtual_path); |
| 89 static FileSystemURL CreateForTest(const GURL& origin, |
| 90 FileSystemType mount_type, |
| 91 const base::FilePath& virtual_path, |
| 92 const std::string& mount_filesystem_id, |
| 93 FileSystemType cracked_type, |
| 94 const base::FilePath& cracked_path, |
| 95 const std::string& filesystem_id, |
| 96 const FileSystemMountOption& mount_option); |
| 89 | 97 |
| 90 // Returns true if this instance represents a valid FileSystem URL. | 98 // Returns true if this instance represents a valid FileSystem URL. |
| 91 bool is_valid() const { return is_valid_; } | 99 bool is_valid() const { return is_valid_; } |
| 92 | 100 |
| 93 // Returns the origin part of this URL. See the class comment for details. | 101 // Returns the origin part of this URL. See the class comment for details. |
| 94 const GURL& origin() const { return origin_; } | 102 const GURL& origin() const { return origin_; } |
| 95 | 103 |
| 96 // Returns the type part of this URL. See the class comment for details. | 104 // Returns the type part of this URL. See the class comment for details. |
| 97 FileSystemType type() const { return type_; } | 105 FileSystemType type() const { return type_; } |
| 98 | 106 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 base::FilePath path_; | 179 base::FilePath path_; |
| 172 std::string filesystem_id_; | 180 std::string filesystem_id_; |
| 173 FileSystemMountOption mount_option_; | 181 FileSystemMountOption mount_option_; |
| 174 }; | 182 }; |
| 175 | 183 |
| 176 typedef std::set<FileSystemURL, FileSystemURL::Comparator> FileSystemURLSet; | 184 typedef std::set<FileSystemURL, FileSystemURL::Comparator> FileSystemURLSet; |
| 177 | 185 |
| 178 } // namespace storage | 186 } // namespace storage |
| 179 | 187 |
| 180 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ | 188 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_URL_H_ |
| OLD | NEW |