OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebAddressSpace_h | 5 #ifndef WebAddressSpace_h |
6 #define WebAddressSpace_h | 6 #define WebAddressSpace_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // The ordering is important, as it's used to determine whether preflights are r
equired, | 10 // The ordering is important, as it's used to determine whether preflights are |
11 // as per https://mikewest.github.io/cors-rfc1918/#framework | 11 // required, as per https://mikewest.github.io/cors-rfc1918/#framework |
12 enum WebAddressSpace { | 12 enum WebAddressSpace { |
13 WebAddressSpaceLocal = 0, // loopback, link local | 13 WebAddressSpaceLocal = 0, // loopback, link local |
14 WebAddressSpacePrivate, // Reserved by RFC1918 | 14 WebAddressSpacePrivate, // Reserved by RFC1918 |
15 WebAddressSpacePublic, // Everything else | 15 WebAddressSpacePublic, // Everything else |
16 WebAddressSpaceLast = WebAddressSpacePublic | 16 WebAddressSpaceLast = WebAddressSpacePublic |
17 }; | 17 }; |
18 | 18 |
19 } // namespace blink | 19 } // namespace blink |
20 | 20 |
21 #endif // WebAddressSpace_h | 21 #endif // WebAddressSpace_h |
OLD | NEW |