| 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 WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 return mount_filesystem_id_; | 115 return mount_filesystem_id_; |
| 116 } | 116 } |
| 117 | 117 |
| 118 FileSystemType mount_type() const { return mount_type_; } | 118 FileSystemType mount_type() const { return mount_type_; } |
| 119 | 119 |
| 120 std::string DebugString() const; | 120 std::string DebugString() const; |
| 121 | 121 |
| 122 // Returns true if this URL is a strict parent of the |child|. | 122 // Returns true if this URL is a strict parent of the |child|. |
| 123 bool IsParent(const FileSystemURL& child) const; | 123 bool IsParent(const FileSystemURL& child) const; |
| 124 | 124 |
| 125 bool IsInSameFileSystem(const FileSystemURL& other) const; |
| 126 |
| 125 bool operator==(const FileSystemURL& that) const; | 127 bool operator==(const FileSystemURL& that) const; |
| 126 | 128 |
| 127 struct WEBKIT_STORAGE_EXPORT Comparator { | 129 struct WEBKIT_STORAGE_EXPORT Comparator { |
| 128 bool operator() (const FileSystemURL& lhs, const FileSystemURL& rhs) const; | 130 bool operator() (const FileSystemURL& lhs, const FileSystemURL& rhs) const; |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 private: | 133 private: |
| 132 friend class FileSystemContext; | 134 friend class FileSystemContext; |
| 133 friend class ExternalMountPoints; | 135 friend class ExternalMountPoints; |
| 134 friend class IsolatedContext; | 136 friend class IsolatedContext; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 162 FileSystemType type_; | 164 FileSystemType type_; |
| 163 base::FilePath path_; | 165 base::FilePath path_; |
| 164 std::string filesystem_id_; | 166 std::string filesystem_id_; |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 typedef std::set<FileSystemURL, FileSystemURL::Comparator> FileSystemURLSet; | 169 typedef std::set<FileSystemURL, FileSystemURL::Comparator> FileSystemURLSet; |
| 168 | 170 |
| 169 } // namespace fileapi | 171 } // namespace fileapi |
| 170 | 172 |
| 171 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ | 173 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_H_ |
| OLD | NEW |