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

Unified Diff: content/public/common/origin_util.h

Issue 2005783005: Re-enable storage for Suborigins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 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: content/public/common/origin_util.h
diff --git a/content/public/common/origin_util.h b/content/public/common/origin_util.h
index bb050c94327f26842ecbc7e0c274a8d4152346bd..76042b6696f4801dc0e88790dce7b1a1545c2435 100644
--- a/content/public/common/origin_util.h
+++ b/content/public/common/origin_util.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_
#define CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_
+#include <string>
+
#include "content/common/content_export.h"
class GURL;
@@ -25,6 +27,10 @@ bool CONTENT_EXPORT OriginCanAccessServiceWorkers(const GURL& url);
// Resets the internal schemes/origins whitelist. Used only for testing.
void CONTENT_EXPORT ResetSchemesAndOriginsWhitelistForTesting();
+bool CONTENT_EXPORT HasSuborigin(const GURL& url);
+std::string CONTENT_EXPORT SuboriginFromUrl(const GURL& url);
+std::string CONTENT_EXPORT HostFromUrlStripSuborigin(const GURL& url);
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698