2012-12-10 18:13:55 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2013-02-08 15:49:30 +04:00
|
|
|
#ifndef mozilla_net_DashboardTypes_h_
|
|
|
|
#define mozilla_net_DashboardTypes_h_
|
2012-12-10 18:13:55 +04:00
|
|
|
|
2018-06-01 21:32:05 +03:00
|
|
|
#include "nsHttp.h"
|
2013-09-06 00:12:38 +04:00
|
|
|
#include "nsString.h"
|
2013-03-17 11:55:16 +04:00
|
|
|
#include "nsTArray.h"
|
|
|
|
|
2012-12-10 18:13:55 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
struct SocketInfo
|
|
|
|
{
|
|
|
|
nsCString host;
|
|
|
|
uint64_t sent;
|
|
|
|
uint64_t received;
|
|
|
|
uint16_t port;
|
|
|
|
bool active;
|
|
|
|
bool tcp;
|
|
|
|
};
|
|
|
|
|
2013-07-23 18:52:01 +04:00
|
|
|
struct HalfOpenSockets
|
|
|
|
{
|
|
|
|
bool speculative;
|
|
|
|
};
|
|
|
|
|
2012-12-10 18:13:55 +04:00
|
|
|
struct DNSCacheEntries
|
|
|
|
{
|
|
|
|
nsCString hostname;
|
|
|
|
nsTArray<nsCString> hostaddr;
|
2013-02-08 15:49:30 +04:00
|
|
|
uint16_t family;
|
2012-12-10 18:13:55 +04:00
|
|
|
int64_t expiration;
|
2015-02-19 08:14:00 +03:00
|
|
|
nsCString netInterface;
|
2018-02-22 11:57:22 +03:00
|
|
|
bool TRR;
|
2012-12-10 18:13:55 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct HttpConnInfo
|
|
|
|
{
|
|
|
|
uint32_t ttl;
|
|
|
|
uint32_t rtt;
|
2013-07-09 00:35:08 +04:00
|
|
|
nsString protocolVersion;
|
|
|
|
|
2018-06-01 21:32:05 +03:00
|
|
|
void SetHTTP1ProtocolVersion(HttpVersion pv);
|
|
|
|
void SetHTTP2ProtocolVersion(SpdyVersion pv);
|
2012-12-10 18:13:55 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct HttpRetParams
|
|
|
|
{
|
|
|
|
nsCString host;
|
|
|
|
nsTArray<HttpConnInfo> active;
|
|
|
|
nsTArray<HttpConnInfo> idle;
|
2013-07-23 18:52:01 +04:00
|
|
|
nsTArray<HalfOpenSockets> halfOpens;
|
2012-12-10 18:13:55 +04:00
|
|
|
uint32_t counter;
|
|
|
|
uint16_t port;
|
|
|
|
bool spdy;
|
|
|
|
bool ssl;
|
|
|
|
};
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
2012-12-10 18:13:55 +04:00
|
|
|
|
2013-02-08 15:49:30 +04:00
|
|
|
#endif // mozilla_net_DashboardTypes_h_
|