1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/src/DashboardTypes.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef mozilla_net_DashboardTypes_h_ 1.9 +#define mozilla_net_DashboardTypes_h_ 1.10 + 1.11 +#include "nsString.h" 1.12 +#include "nsTArray.h" 1.13 + 1.14 +namespace mozilla { 1.15 +namespace net { 1.16 + 1.17 +struct SocketInfo 1.18 +{ 1.19 + nsCString host; 1.20 + uint64_t sent; 1.21 + uint64_t received; 1.22 + uint16_t port; 1.23 + bool active; 1.24 + bool tcp; 1.25 +}; 1.26 + 1.27 +struct HalfOpenSockets 1.28 +{ 1.29 + bool speculative; 1.30 +}; 1.31 + 1.32 +struct DNSCacheEntries 1.33 +{ 1.34 + nsCString hostname; 1.35 + nsTArray<nsCString> hostaddr; 1.36 + uint16_t family; 1.37 + int64_t expiration; 1.38 +}; 1.39 + 1.40 +struct HttpConnInfo 1.41 +{ 1.42 + uint32_t ttl; 1.43 + uint32_t rtt; 1.44 + nsString protocolVersion; 1.45 + 1.46 + void SetHTTP1ProtocolVersion(uint8_t pv); 1.47 + void SetHTTP2ProtocolVersion(uint8_t pv); 1.48 +}; 1.49 + 1.50 +struct HttpRetParams 1.51 +{ 1.52 + nsCString host; 1.53 + nsTArray<HttpConnInfo> active; 1.54 + nsTArray<HttpConnInfo> idle; 1.55 + nsTArray<HalfOpenSockets> halfOpens; 1.56 + uint32_t counter; 1.57 + uint16_t port; 1.58 + bool spdy; 1.59 + bool ssl; 1.60 +}; 1.61 + 1.62 +} } 1.63 + 1.64 +#endif // mozilla_net_DashboardTypes_h_