summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/fileapi/file_system_url.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_url.h b/webkit/fileapi/file_system_url.h
index d9a9ecb..f58fa22 100644
--- a/webkit/fileapi/file_system_url.h
+++ b/webkit/fileapi/file_system_url.h
@@ -91,6 +91,16 @@ class FILEAPI_EXPORT FileSystemURL {
bool operator==(const FileSystemURL& that) const;
+ bool operator<(const FileSystemURL& that) const {
+ DCHECK(is_valid_ && that.is_valid_);
+ if (origin_ < that.origin_) return true;
+ if (type_ < that.type_) return true;
+ // Compares the virtual path, i.e. the path() part of the original URL
+ // so that this reflects the virtual path relationship (rather than
+ // that of cracked paths).
+ return virtual_path_ < that.virtual_path_;
+ }
+
private:
void MayCrackIsolatedPath();