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

Unified Diff: url/origin.h

Issue 2449233002: Add suborigins to WebSecurityOrigin (Closed)
Patch Set: Rebase on ToT 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
« no previous file with comments | « third_party/WebKit/public/platform/WebSecurityOrigin.h ('k') | url/origin.cc » ('j') | 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 b4bee817a4acec5606cd62ae513b58991c57d1a2..1c28588f311249478f70d01978b76e6f15ff2e18 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -109,6 +109,14 @@ class URL_EXPORT Origin {
base::StringPiece host,
uint16_t port);
+ // Same as CreateFromNormalizedTuple() above, but adds a suborigin component
+ // as well.
+ static Origin CreateFromNormalizedTupleWithSuborigin(
+ base::StringPiece scheme,
+ base::StringPiece host,
+ uint16_t port,
+ base::StringPiece suborigin);
+
~Origin();
// For unique origins, these return ("", "", 0).
@@ -163,6 +171,7 @@ class URL_EXPORT Origin {
Origin(base::StringPiece scheme,
base::StringPiece host,
uint16_t port,
+ base::StringPiece suborigin,
SchemeHostPort::ConstructPolicy policy);
SchemeHostPort tuple_;
« no previous file with comments | « third_party/WebKit/public/platform/WebSecurityOrigin.h ('k') | url/origin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698