michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_net_DashboardTypes_h_ michael@0: #define mozilla_net_DashboardTypes_h_ michael@0: michael@0: #include "nsString.h" michael@0: #include "nsTArray.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: struct SocketInfo michael@0: { michael@0: nsCString host; michael@0: uint64_t sent; michael@0: uint64_t received; michael@0: uint16_t port; michael@0: bool active; michael@0: bool tcp; michael@0: }; michael@0: michael@0: struct HalfOpenSockets michael@0: { michael@0: bool speculative; michael@0: }; michael@0: michael@0: struct DNSCacheEntries michael@0: { michael@0: nsCString hostname; michael@0: nsTArray hostaddr; michael@0: uint16_t family; michael@0: int64_t expiration; michael@0: }; michael@0: michael@0: struct HttpConnInfo michael@0: { michael@0: uint32_t ttl; michael@0: uint32_t rtt; michael@0: nsString protocolVersion; michael@0: michael@0: void SetHTTP1ProtocolVersion(uint8_t pv); michael@0: void SetHTTP2ProtocolVersion(uint8_t pv); michael@0: }; michael@0: michael@0: struct HttpRetParams michael@0: { michael@0: nsCString host; michael@0: nsTArray active; michael@0: nsTArray idle; michael@0: nsTArray halfOpens; michael@0: uint32_t counter; michael@0: uint16_t port; michael@0: bool spdy; michael@0: bool ssl; michael@0: }; michael@0: michael@0: } } michael@0: michael@0: #endif // mozilla_net_DashboardTypes_h_