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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtils.h

Issue 2196983002: Allow doc.written scripts with a matching domain and registry to execute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compiler error Created 4 years, 4 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: third_party/WebKit/Source/platform/network/NetworkUtils.h
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtils.h b/third_party/WebKit/Source/platform/network/NetworkUtils.h
index 98e733a6ef63e5645e5ab3e99085fb8a07b95043..471ebb1a848da128f32dfa32b2ad7f2bb8855d2b 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.h
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.h
@@ -12,10 +12,17 @@ namespace blink {
namespace NetworkUtils {
+enum PrivateRegistryFilter {
+ IncludePrivateRegistries,
+ ExcludePrivateRegistries,
+};
+
PLATFORM_EXPORT bool isReservedIPAddress(const String& host);
PLATFORM_EXPORT bool isLocalHostname(const String& host, bool* isLocal6);
+PLATFORM_EXPORT String getDomainAndRegistry(const String& host, PrivateRegistryFilter);
+
} // NetworkUtils
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698