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

Unified Diff: url/origin.h

Issue 2495353003: chrome.webRequest support for ExtensionSettings (Closed)
Patch Set: Policy template translation doesn't like '&', switching to 'and'. Small fix to browser test. Created 3 years, 7 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
Index: url/origin.h
diff --git a/url/origin.h b/url/origin.h
index 9e6b492abef50e9b30e6484e766aea2dc76b2bff..8a5ab3df7dd3f7a290ac99bb290c9d7a00f39cea 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -156,6 +156,12 @@ class URL_EXPORT Origin {
// valid SchemeHostPorts and file Origins.
GURL GetURL() const;
+ // Similar to GetURL() but does NOT modify the URL when a suborigin is used.
+ // Note: The returned URL will not be serialized to the same value
+ // as the Origin would. The GURL will have an added "/" path for Origins with
+ // valid SchemeHostPorts and file Origins.
+ GURL GetURLWithoutSuborigin() const;
Devlin 2017/05/25 20:38:33 Mike would know better, but this seems to be a lit
+
// Same as GURL::DomainIs. If |this| origin is unique, then returns false.
bool DomainIs(base::StringPiece lower_ascii_domain) const;

Powered by Google App Engine
This is Rietveld 408576698