#ifndef WebPerformance_h
#define WebPerformance_h
#include "WebNavigationType.h"
#include "platform/WebCommon.h"
#include "platform/WebPrivatePtr.h"
namespace WebCore { class Performance; }
namespace WebKit {
class WebPerformance {
public:
~WebPerformance() { reset(); }
WebPerformance() { }
WebPerformance(const WebPerformance& p) { assign(p); }
WebPerformance& operator=(const WebPerformance& p)
{
assign(p);
return *this;
}
WEBKIT_EXPORT void reset();
WEBKIT_EXPORT void assign(const WebPerformance&);
WEBKIT_EXPORT WebNavigationType navigationType() const;
WEBKIT_EXPORT double navigationStart() const;
WEBKIT_EXPORT double unloadEventEnd() const;
WEBKIT_EXPORT double redirectStart() const;
WEBKIT_EXPORT double redirectEnd() const;
WEBKIT_EXPORT unsigned short redirectCount() const;
WEBKIT_EXPORT double fetchStart() const;
WEBKIT_EXPORT double domainLookupStart() const;
WEBKIT_EXPORT double domainLookupEnd() const;
WEBKIT_EXPORT double connectStart() const;
WEBKIT_EXPORT double connectEnd() const;
WEBKIT_EXPORT double requestStart() const;
WEBKIT_EXPORT double responseStart() const;
WEBKIT_EXPORT double responseEnd() const;
WEBKIT_EXPORT double domLoading() const;
WEBKIT_EXPORT double domInteractive() const;
WEBKIT_EXPORT double domContentLoadedEventStart() const;
WEBKIT_EXPORT double domContentLoadedEventEnd() const;
WEBKIT_EXPORT double domComplete() const;
WEBKIT_EXPORT double loadEventStart() const;
WEBKIT_EXPORT double loadEventEnd() const;
#if WEBKIT_IMPLEMENTATION
WebPerformance(const WTF::PassRefPtr<WebCore::Performance>&);
WebPerformance& operator=(const WTF::PassRefPtr<WebCore::Performance>&);
operator WTF::PassRefPtr<WebCore::Performance>() const;
#endif
private:
WebPrivatePtr<WebCore::Performance> m_private;
};
}
#endif