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

Unified Diff: url/origin.cc

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Introduce NullableOrigin to use for request initiator Created 4 years, 2 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
« url/origin.h ('K') | « url/origin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin.cc
diff --git a/url/origin.cc b/url/origin.cc
index f31d38ababa08e57e89ec9a219f7a2676e9e80a3..5fa31de25627f2b61ec38bb5ee16327a0311cc98 100644
--- a/url/origin.cc
+++ b/url/origin.cc
@@ -98,4 +98,9 @@ bool IsSameOriginWith(const GURL& a, const GURL& b) {
return Origin(a).IsSameOriginWith(Origin(b));
}
+NullableOrigin::NullableOrigin(const GURL& url) : Origin(url) {}
+NullableOrigin::NullableOrigin(const Origin& origin) : Origin(origin) {}
+
+NullableOrigin::~NullableOrigin() {}
+
} // namespace url
« url/origin.h ('K') | « url/origin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698