ResourceLoadTiming.h [plain text]
#ifndef ResourceLoadTiming_h
#define ResourceLoadTiming_h
namespace WebCore {
class ResourceLoadTiming {
public:
ResourceLoadTiming()
: domainLookupStart(-1)
, domainLookupEnd(-1)
, connectStart(-1)
, connectEnd(-1)
, requestStart(0)
, responseStart(0)
, secureConnectionStart(-1)
{
}
ResourceLoadTiming(const ResourceLoadTiming& other)
: domainLookupStart(other.domainLookupStart)
, domainLookupEnd(other.domainLookupEnd)
, connectStart(other.connectStart)
, connectEnd(other.connectEnd)
, requestStart(other.requestStart)
, responseStart(other.responseStart)
, secureConnectionStart(other.secureConnectionStart)
{
}
ResourceLoadTiming& operator=(const ResourceLoadTiming& other)
{
domainLookupStart = other.domainLookupStart;
domainLookupEnd = other.domainLookupEnd;
connectStart = other.connectStart;
connectEnd = other.connectEnd;
requestStart = other.requestStart;
responseStart = other.responseStart;
secureConnectionStart = other.secureConnectionStart;
return *this;
}
bool operator==(const ResourceLoadTiming& other) const
{
return domainLookupStart == other.domainLookupStart
&& domainLookupEnd == other.domainLookupEnd
&& connectStart == other.connectStart
&& connectEnd == other.connectEnd
&& requestStart == other.requestStart
&& responseStart == other.responseStart
&& secureConnectionStart == other.secureConnectionStart;
}
bool operator!=(const ResourceLoadTiming& other) const
{
return !(*this == other);
}
int domainLookupStart;
int domainLookupEnd;
int connectStart;
int connectEnd;
int requestStart;
int responseStart;
int secureConnectionStart;
};
}
#endif