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

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

Issue 1775933002: CORS-RFC1918: Pipe creator address space through SharedWorker creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 9 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/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebAddressSpace.h
diff --git a/third_party/WebKit/public/platform/WebAddressSpace.h b/third_party/WebKit/public/platform/WebAddressSpace.h
new file mode 100644
index 0000000000000000000000000000000000000000..e5b5965d22c8e5b6a87533d036c21004110a0f16
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebAddressSpace.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebAddressSpace_h
+#define WebAddressSpace_h
+
+namespace blink {
+
+// The ordering is important, as it's used to determine whether preflights are required,
+// as per https://mikewest.github.io/cors-rfc1918/#framework
+enum WebAddressSpace {
+ WebAddressSpaceLocal = 0, // loopback, link local
+ WebAddressSpacePrivate, // Reserved by RFC1918
+ WebAddressSpacePublic, // Everything else
+ WebAddressSpaceLast = WebAddressSpacePublic
+};
+
+} // namespace blink
+
+#endif // WebAddressSpace_h
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698