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

Unified Diff: net/base/net_info_source_list.h

Issue 679103004: Add function to get network stack state from a URLRequestContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix badProxies Created 6 years, 2 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: net/base/net_info_source_list.h
diff --git a/net/base/net_info_source_list.h b/net/base/net_info_source_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..f22be1f26c82e2c62002fd77c067319cf448edcb
--- /dev/null
+++ b/net/base/net_info_source_list.h
@@ -0,0 +1,17 @@
+// Copyright 2014 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.
+
+// This file intentionally does not have header guards, it's included
+// inside a macro to generate enum values.
+
+// The strings don't match the enums for historical reasons.
+NET_INFO_SOURCE(PROXY_SETTINGS, "proxySettings", 1 << 0)
+NET_INFO_SOURCE(BAD_PROXIES, "badProxies", 1 << 1)
+NET_INFO_SOURCE(HOST_RESOLVER, "hostResolverInfo", 1 << 2)
+NET_INFO_SOURCE(SOCKET_POOL, "socketPoolInfo", 1 << 3)
+NET_INFO_SOURCE(QUIC, "quicInfo", 1 << 4)
+NET_INFO_SOURCE(SPDY_SESSIONS, "spdySessionInfo", 1 << 5)
+NET_INFO_SOURCE(SPDY_STATUS, "spdyStatus", 1 << 6)
+NET_INFO_SOURCE(SPDY_ALT_PROTO_MAPPING, "spdyAlternateProtocolMappings", 1 << 7)
eroman 2014/10/28 21:59:41 nit: MAPPING --> MAPPINGS?
mmenke 2014/10/29 15:44:55 Done, tou're right, mistake on my part...but that
+NET_INFO_SOURCE(HTTP_CACHE, "httpCacheInfo", 1 << 8)

Powered by Google App Engine
This is Rietveld 408576698