diff options
Diffstat (limited to 'webkit/fileapi/file_system_url.cc')
-rw-r--r-- | webkit/fileapi/file_system_url.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_url.cc b/webkit/fileapi/file_system_url.cc index 52dbce6..f3053a4 100644 --- a/webkit/fileapi/file_system_url.cc +++ b/webkit/fileapi/file_system_url.cc @@ -114,6 +114,13 @@ FileSystemURL FileSystemURL::WithPath(const FilePath& path) const { return url; } +bool FileSystemURL::IsParent(const FileSystemURL& child) const { + return origin() == child.origin() && + type() == child.type() && + filesystem_id() == child.filesystem_id() && + path().IsParent(child.path()); +} + bool FileSystemURL::operator==(const FileSystemURL& that) const { return origin_ == that.origin_ && type_ == that.type_ && |