OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file intentionally does not have header guards, it's included | 5 // This file intentionally does not have header guards, it's included |
6 // inside a macro to generate enum values. | 6 // inside a macro to generate enum values. |
7 | 7 |
8 // Flags used to request different types of information about the current state | 8 // Flags used to request different types of information about the current state |
9 // of a URLRequestContext. | 9 // of a URLRequestContext. |
10 // | 10 // |
11 // The strings don't match the enums for historical reasons. | 11 // The strings don't match the enums for historical reasons. |
12 | 12 |
13 NET_INFO_SOURCE(PROXY_SETTINGS, "proxySettings", 1 << 0) | 13 NET_INFO_SOURCE(PROXY_SETTINGS, "proxySettings", 1 << 0) |
14 NET_INFO_SOURCE(BAD_PROXIES, "badProxies", 1 << 1) | 14 NET_INFO_SOURCE(BAD_PROXIES, "badProxies", 1 << 1) |
15 NET_INFO_SOURCE(HOST_RESOLVER, "hostResolverInfo", 1 << 2) | 15 NET_INFO_SOURCE(HOST_RESOLVER, "hostResolverInfo", 1 << 2) |
16 NET_INFO_SOURCE(SOCKET_POOL, "socketPoolInfo", 1 << 3) | 16 NET_INFO_SOURCE(SOCKET_POOL, "socketPoolInfo", 1 << 3) |
17 NET_INFO_SOURCE(QUIC, "quicInfo", 1 << 4) | 17 NET_INFO_SOURCE(QUIC, "quicInfo", 1 << 4) |
18 NET_INFO_SOURCE(SPDY_SESSIONS, "spdySessionInfo", 1 << 5) | 18 NET_INFO_SOURCE(SPDY_SESSIONS, "spdySessionInfo", 1 << 5) |
19 NET_INFO_SOURCE(SPDY_STATUS, "spdyStatus", 1 << 6) | 19 NET_INFO_SOURCE(SPDY_STATUS, "spdyStatus", 1 << 6) |
20 NET_INFO_SOURCE(SPDY_ALT_PROTO_MAPPINGS, "spdyAlternateProtocolMappings", | 20 NET_INFO_SOURCE(SPDY_ALT_PROTO_MAPPINGS, "spdyAlternateProtocolMappings", |
21 1 << 7) | 21 1 << 7) |
22 NET_INFO_SOURCE(HTTP_CACHE, "httpCacheInfo", 1 << 8) | 22 NET_INFO_SOURCE(HTTP_CACHE, "httpCacheInfo", 1 << 8) |
23 NET_INFO_SOURCE(SDCH, "sdchInfo", 1 << 9) | |
OLD | NEW |