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

Unified Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 1749153002: CORS-RFC1918: Teach ResourceRequest about "external" requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/public/platform/WebURLRequest.h
diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
index f493a316ae24d60c483217ff61142b701555db43..14d67b00fed5c39eb98d15ff238e5f4c2b77a490 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -307,10 +307,8 @@ public:
BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const;
BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::InputToLoadPerfMetricReportPolicy);
- // Does the request originate from a SecurityContext hosted in a reserved
- // (RFC1918) IP range?
- BLINK_PLATFORM_EXPORT bool originatesFromReservedIPRange() const;
- BLINK_PLATFORM_EXPORT void setOriginatesFromReservedIPRange(bool);
+ // https://mikewest.github.io/cors-rfc1918/#external-request
+ BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();

Powered by Google App Engine
This is Rietveld 408576698