summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 11:35:15 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 11:35:15 +0000
commitc133e960c472483e72e7b4e9b2f17b162128981f (patch)
tree824951943ad0ac7ab25ac4b36bfc67f4740fc805 /webkit
parentddbdc19c275e99d03efb9870ad2517c45ba4bf40 (diff)
downloadchromium_src-c133e960c472483e72e7b4e9b2f17b162128981f.zip
chromium_src-c133e960c472483e72e7b4e9b2f17b162128981f.tar.gz
chromium_src-c133e960c472483e72e7b4e9b2f17b162128981f.tar.bz2
Add less< for FileSystemURL
BUG=146312 TEST=to be added Review URL: https://chromiumcodereview.appspot.com/10914095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154941 0039d316-1c4b-4281-b951-d872f2087c98
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();