Index: third_party/WebKit/Source/core/html/TimeRanges.h |
diff --git a/third_party/WebKit/Source/core/html/TimeRanges.h b/third_party/WebKit/Source/core/html/TimeRanges.h |
index 336191f1dbf7a7706ba425656742e0eb5b19d063..40e4f147dc8fd78e56b441df479b57c3f15ad6bd 100644 |
--- a/third_party/WebKit/Source/core/html/TimeRanges.h |
+++ b/third_party/WebKit/Source/core/html/TimeRanges.h |
@@ -113,6 +113,8 @@ public: |
DEFINE_INLINE_TRACE() { } |
private: |
+ friend bool operator==(const TimeRanges&, const TimeRanges&); |
+ |
TimeRanges() { } |
TimeRanges(double start, double end); |
@@ -122,6 +124,11 @@ private: |
Vector<Range> m_ranges; |
}; |
+inline bool operator==(const TimeRanges::Range& a, const TimeRanges::Range& b) { return a.m_start == b.m_start && a.m_end == b.m_end; } |
+inline bool operator!=(const TimeRanges::Range& a, const TimeRanges::Range& b) { return !(a == b); } |
+inline bool operator==(const TimeRanges& a, const TimeRanges& b) { return a.m_ranges == b.m_ranges; } |
+inline bool operator!=(const TimeRanges& a, const TimeRanges& b) { return !(a == b); } |
+ |
} // namespace blink |
#endif // TimeRanges_h |