Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: url/origin.h

Issue 1656933003: Add origins argument to registerForeignFetchScopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add url::Origin::operator== to make tests simpler Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin.h
diff --git a/url/origin.h b/url/origin.h
index aed98135cbbde87572fc2596f8695dda6aacdf1c..aab1f05a2013cc84cd4aedbb91a9e10b0df88307 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -118,6 +118,9 @@ class URL_EXPORT Origin {
// Two Origins are "same-origin" if their schemes, hosts, and ports are exact
// matches; and neither is unique.
bool IsSameOriginWith(const Origin& other) const;
+ bool operator==(const Origin& other) const {
+ return IsSameOriginWith(other);
+ }
// Allows Origin to be used as a key in STL (for example, a std::set or
// std::map).
« no previous file with comments | « third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698