PerformanceTiming.h [plain text]
#ifndef PerformanceTiming_h
#define PerformanceTiming_h
#if ENABLE(WEB_TIMING)
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
struct DocumentLoadTiming;
class DocumentLoader;
struct DocumentTiming;
class Frame;
class ResourceLoadTiming;
class PerformanceTiming : public RefCounted<PerformanceTiming> {
public:
static PassRefPtr<PerformanceTiming> create(Frame* frame) { return adoptRef(new PerformanceTiming(frame)); }
Frame* frame() const;
void disconnectFrame();
unsigned long long navigationStart() const;
unsigned long long unloadEventStart() const;
unsigned long long unloadEventEnd() const;
unsigned long long redirectStart() const;
unsigned long long redirectEnd() const;
unsigned long long fetchStart() const;
unsigned long long domainLookupStart() const;
unsigned long long domainLookupEnd() const;
unsigned long long connectStart() const;
unsigned long long connectEnd() const;
unsigned long long secureConnectionStart() const;
unsigned long long requestStart() const;
unsigned long long responseStart() const;
unsigned long long responseEnd() const;
unsigned long long domLoading() const;
unsigned long long domInteractive() const;
unsigned long long domContentLoadedEventStart() const;
unsigned long long domContentLoadedEventEnd() const;
unsigned long long domComplete() const;
unsigned long long loadEventStart() const;
unsigned long long loadEventEnd() const;
private:
PerformanceTiming(Frame*);
const DocumentTiming* documentTiming() const;
DocumentLoader* documentLoader() const;
DocumentLoadTiming* documentLoadTiming() const;
ResourceLoadTiming* resourceLoadTiming() const;
unsigned long long resourceLoadTimeRelativeToAbsolute(int) const;
Frame* m_frame;
};
}
#endif // !ENABLE(WEB_TIMING)
#endif // !defined(PerformanceTiming_h)