2011-06-23 03:39:48 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2011-06-23 03:39:48 -07:00
|
|
|
#ifndef nsPerformance_h___
|
|
|
|
#define nsPerformance_h___
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsAutoPtr.h"
|
2012-06-14 19:31:55 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2012-07-16 18:42:18 -07:00
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
#include "nsDOMNavigationTiming.h"
|
2013-05-10 15:57:58 -07:00
|
|
|
#include "nsContentUtils.h"
|
2014-05-09 19:12:06 -07:00
|
|
|
#include "nsPIDOMWindow.h"
|
2013-08-27 19:59:14 -07:00
|
|
|
#include "js/TypeDecls.h"
|
2013-10-15 18:35:44 -07:00
|
|
|
#include "mozilla/dom/BindingDeclarations.h"
|
2014-05-09 19:12:06 -07:00
|
|
|
#include "mozilla/DOMEventTargetHelper.h"
|
2011-06-23 03:39:48 -07:00
|
|
|
|
2011-07-04 09:44:00 -07:00
|
|
|
class nsITimedChannel;
|
2012-07-16 18:42:18 -07:00
|
|
|
class nsPerformance;
|
2013-10-15 18:35:44 -07:00
|
|
|
class nsIHttpChannel;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class PerformanceEntry;
|
|
|
|
}
|
|
|
|
}
|
2011-06-23 03:39:48 -07:00
|
|
|
|
|
|
|
// Script "performance.timing" object
|
2012-12-06 13:01:59 -08:00
|
|
|
class nsPerformanceTiming MOZ_FINAL : public nsWrapperCache
|
2011-06-23 03:39:48 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-10-15 18:35:44 -07:00
|
|
|
typedef mozilla::TimeStamp TimeStamp;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param aPerformance
|
|
|
|
* The performance object (the JS parent).
|
|
|
|
* This will allow access to "window.performance.timing" attribute for
|
|
|
|
* the navigation timing (can't be null).
|
|
|
|
* @param aChannel
|
|
|
|
* An nsITimedChannel used to gather all the networking timings by both
|
|
|
|
* the navigation timing and the resource timing (can't be null).
|
|
|
|
* @param aHttpChannel
|
|
|
|
* An nsIHttpChannel (the resource's http channel).
|
|
|
|
* This will be used by the resource timing cross-domain check
|
|
|
|
* algorithm.
|
|
|
|
* Argument is null for the navigation timing (navigation timing uses
|
|
|
|
* another algorithm for the cross-domain redirects).
|
|
|
|
* @param aZeroTime
|
|
|
|
* The offset that will be added to the timestamp of each event. This
|
|
|
|
* argument should be equal to performance.navigationStart for
|
|
|
|
* navigation timing and "0" for the resource timing.
|
|
|
|
*/
|
2012-07-16 18:42:18 -07:00
|
|
|
nsPerformanceTiming(nsPerformance* aPerformance,
|
2013-10-15 18:35:44 -07:00
|
|
|
nsITimedChannel* aChannel,
|
|
|
|
nsIHttpChannel* aHttpChannel,
|
|
|
|
DOMHighResTimeStamp aZeroTime);
|
2012-12-06 13:01:59 -08:00
|
|
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsPerformanceTiming)
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(nsPerformanceTiming)
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
nsDOMNavigationTiming* GetDOMTiming() const;
|
|
|
|
|
|
|
|
nsPerformance* GetParentObject() const
|
|
|
|
{
|
|
|
|
return mPerformance;
|
|
|
|
}
|
|
|
|
|
2013-10-15 18:35:44 -07:00
|
|
|
/**
|
|
|
|
* @param aStamp
|
|
|
|
* The TimeStamp recorded for a specific event. This TimeStamp can
|
|
|
|
* be null.
|
|
|
|
* @return the duration of an event with a given TimeStamp, relative to the
|
|
|
|
* navigationStart TimeStamp (the moment the user landed on the
|
|
|
|
* page), if the given TimeStamp is valid. Otherwise, it will return
|
|
|
|
* the FetchStart timing value.
|
|
|
|
*/
|
|
|
|
inline DOMHighResTimeStamp TimeStampToDOMHighResOrFetchStart(TimeStamp aStamp)
|
|
|
|
{
|
|
|
|
return (!aStamp.IsNull())
|
|
|
|
? TimeStampToDOMHighRes(aStamp)
|
|
|
|
: FetchStartHighRes();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsITimedChannel records an absolute timestamp for each event.
|
|
|
|
* The nsDOMNavigationTiming will record the moment when the user landed on
|
|
|
|
* the page. This is a window.performance unique timestamp, so it can be used
|
|
|
|
* for all the events (navigation timing and resource timing events).
|
|
|
|
*
|
|
|
|
* The algorithm operates in 2 steps:
|
|
|
|
* 1. The first step is to subtract the two timestamps: the argument (the
|
|
|
|
* envet's timesramp) and the navigation start timestamp. This will result in
|
|
|
|
* a relative timestamp of the event (relative to the navigation start -
|
|
|
|
* window.performance.timing.navigationStart).
|
|
|
|
* 2. The second step is to add any required offset (the mZeroTime). For now,
|
|
|
|
* this offset value is either 0 (for the resource timing), or equal to
|
|
|
|
* "performance.navigationStart" (for navigation timing).
|
|
|
|
* For the resource timing, mZeroTime is set to 0, causing the result to be a
|
|
|
|
* relative time.
|
|
|
|
* For the navigation timing, mZeroTime is set to "performance.navigationStart"
|
|
|
|
* causing the result be an absolute time.
|
|
|
|
*
|
|
|
|
* @param aStamp
|
|
|
|
* The TimeStamp recorded for a specific event. This TimeStamp can't
|
|
|
|
* be null.
|
|
|
|
* @return number of milliseconds value as one of:
|
|
|
|
* - relative to the navigation start time, time the user has landed on the
|
|
|
|
* page
|
|
|
|
* - an absolute wall clock time since the unix epoch
|
|
|
|
*/
|
|
|
|
inline DOMHighResTimeStamp TimeStampToDOMHighRes(TimeStamp aStamp) const
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(!aStamp.IsNull());
|
|
|
|
mozilla::TimeDuration duration =
|
|
|
|
aStamp - GetDOMTiming()->GetNavigationStartTimeStamp();
|
|
|
|
return duration.ToMilliseconds() + mZeroTime;
|
|
|
|
}
|
|
|
|
|
2014-04-08 15:27:18 -07:00
|
|
|
virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
// PerformanceNavigation WebIDL methods
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec NavigationStart() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetNavigationStart();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec UnloadEventStart() {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetUnloadEventStart();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec UnloadEventEnd() {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetUnloadEventEnd();
|
|
|
|
}
|
2013-10-15 18:35:44 -07:00
|
|
|
|
|
|
|
uint16_t GetRedirectCount() const;
|
2014-05-14 22:26:07 -07:00
|
|
|
// Checks if the resource is either same origin as the page that started
|
|
|
|
// the load, or if the response contains the Timing-Allow-Origin header
|
|
|
|
// with a value of * or matching the domain of the loading Principal
|
|
|
|
bool CheckAllowedOrigin(nsIHttpChannel* aResourceChannel);
|
|
|
|
// Cached result of CheckAllowedOrigin. If false, security sensitive
|
|
|
|
// attributes of the resourceTiming object will be set to 0
|
|
|
|
bool TimingAllowed() const;
|
|
|
|
|
|
|
|
// If this is false the values of redirectStart/End will be 0
|
|
|
|
// This is false if no redirects occured, or if any of the responses failed
|
|
|
|
// the timing-allow-origin check in HttpBaseChannel::TimingAllowCheck
|
|
|
|
bool ShouldReportCrossOriginRedirect() const;
|
2013-10-15 18:35:44 -07:00
|
|
|
|
|
|
|
// High resolution (used by resource timing)
|
|
|
|
DOMHighResTimeStamp FetchStartHighRes();
|
|
|
|
DOMHighResTimeStamp RedirectStartHighRes();
|
|
|
|
DOMHighResTimeStamp RedirectEndHighRes();
|
|
|
|
DOMHighResTimeStamp DomainLookupStartHighRes();
|
|
|
|
DOMHighResTimeStamp DomainLookupEndHighRes();
|
|
|
|
DOMHighResTimeStamp ConnectStartHighRes();
|
|
|
|
DOMHighResTimeStamp ConnectEndHighRes();
|
|
|
|
DOMHighResTimeStamp RequestStartHighRes();
|
|
|
|
DOMHighResTimeStamp ResponseStartHighRes();
|
|
|
|
DOMHighResTimeStamp ResponseEndHighRes();
|
|
|
|
|
|
|
|
// Low resolution (used by navigation timing)
|
|
|
|
DOMTimeMilliSec FetchStart();
|
|
|
|
DOMTimeMilliSec RedirectStart();
|
|
|
|
DOMTimeMilliSec RedirectEnd();
|
|
|
|
DOMTimeMilliSec DomainLookupStart();
|
|
|
|
DOMTimeMilliSec DomainLookupEnd();
|
|
|
|
DOMTimeMilliSec ConnectStart();
|
|
|
|
DOMTimeMilliSec ConnectEnd();
|
|
|
|
DOMTimeMilliSec RequestStart();
|
|
|
|
DOMTimeMilliSec ResponseStart();
|
|
|
|
DOMTimeMilliSec ResponseEnd();
|
|
|
|
|
|
|
|
DOMTimeMilliSec DomLoading() {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetDomLoading();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec DomInteractive() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetDomInteractive();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec DomContentLoadedEventStart() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetDomContentLoadedEventStart();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec DomContentLoadedEventEnd() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetDomContentLoadedEventEnd();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec DomComplete() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetDomComplete();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec LoadEventStart() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetLoadEventStart();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
DOMTimeMilliSec LoadEventEnd() const {
|
2013-05-10 15:57:58 -07:00
|
|
|
if (!nsContentUtils::IsPerformanceTimingEnabled()) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetLoadEventEnd();
|
|
|
|
}
|
|
|
|
|
2011-06-23 03:39:48 -07:00
|
|
|
private:
|
|
|
|
~nsPerformanceTiming();
|
2013-10-15 18:35:44 -07:00
|
|
|
bool IsInitialized() const;
|
2012-07-16 18:42:18 -07:00
|
|
|
nsRefPtr<nsPerformance> mPerformance;
|
2011-07-04 09:44:00 -07:00
|
|
|
nsCOMPtr<nsITimedChannel> mChannel;
|
2013-10-15 18:35:44 -07:00
|
|
|
DOMHighResTimeStamp mFetchStart;
|
|
|
|
// This is an offset that will be added to each timing ([ms] resolution).
|
|
|
|
// There are only 2 possible values: (1) logicaly equal to navigationStart
|
|
|
|
// TimeStamp (results are absolute timstamps - wallclock); (2) "0" (results
|
|
|
|
// are relative to the navigation start).
|
|
|
|
DOMHighResTimeStamp mZeroTime;
|
2014-05-14 22:26:07 -07:00
|
|
|
bool mTimingAllowed;
|
|
|
|
|
|
|
|
// If the resourceTiming object should have non-zero redirectStart and
|
|
|
|
// redirectEnd attributes. It is false if there were no redirects, or if
|
|
|
|
// any of the responses didn't pass the timing-allow-check
|
|
|
|
bool mReportCrossOriginRedirect;
|
2011-06-23 03:39:48 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
// Script "performance.navigation" object
|
2012-12-06 13:01:59 -08:00
|
|
|
class nsPerformanceNavigation MOZ_FINAL : public nsWrapperCache
|
2011-06-23 03:39:48 -07:00
|
|
|
{
|
|
|
|
public:
|
2012-07-16 18:42:18 -07:00
|
|
|
explicit nsPerformanceNavigation(nsPerformance* aPerformance);
|
2012-12-06 13:01:59 -08:00
|
|
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsPerformanceNavigation)
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(nsPerformanceNavigation)
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
nsDOMNavigationTiming* GetDOMTiming() const;
|
2013-10-15 18:35:44 -07:00
|
|
|
nsPerformanceTiming* GetPerformanceTiming() const;
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
nsPerformance* GetParentObject() const
|
|
|
|
{
|
|
|
|
return mPerformance;
|
|
|
|
}
|
|
|
|
|
2014-04-08 15:27:18 -07:00
|
|
|
virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
// PerformanceNavigation WebIDL methods
|
2012-09-11 12:08:24 -07:00
|
|
|
uint16_t Type() const {
|
2012-07-16 18:42:18 -07:00
|
|
|
return GetDOMTiming()->GetType();
|
|
|
|
}
|
2012-09-11 12:08:24 -07:00
|
|
|
uint16_t RedirectCount() const {
|
2013-10-15 18:35:44 -07:00
|
|
|
return GetPerformanceTiming()->GetRedirectCount();
|
2012-07-16 18:42:18 -07:00
|
|
|
}
|
|
|
|
|
2011-06-23 03:39:48 -07:00
|
|
|
private:
|
|
|
|
~nsPerformanceNavigation();
|
2012-07-16 18:42:18 -07:00
|
|
|
nsRefPtr<nsPerformance> mPerformance;
|
2011-06-23 03:39:48 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
// Script "performance" object
|
2014-05-09 19:12:06 -07:00
|
|
|
class nsPerformance MOZ_FINAL : public mozilla::DOMEventTargetHelper
|
2011-06-23 03:39:48 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-10-15 18:35:44 -07:00
|
|
|
typedef mozilla::dom::PerformanceEntry PerformanceEntry;
|
2014-05-09 19:12:06 -07:00
|
|
|
nsPerformance(nsPIDOMWindow* aWindow,
|
2012-07-16 18:42:18 -07:00
|
|
|
nsDOMNavigationTiming* aDOMTiming,
|
2013-10-15 18:35:44 -07:00
|
|
|
nsITimedChannel* aChannel,
|
|
|
|
nsPerformance* aParentPerformance);
|
2011-06-23 03:39:48 -07:00
|
|
|
|
2014-05-09 19:12:06 -07:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsPerformance, DOMEventTargetHelper)
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
nsDOMNavigationTiming* GetDOMTiming() const
|
|
|
|
{
|
|
|
|
return mDOMTiming;
|
|
|
|
}
|
|
|
|
|
2012-08-08 20:47:04 -07:00
|
|
|
nsITimedChannel* GetChannel() const
|
|
|
|
{
|
|
|
|
return mChannel;
|
|
|
|
}
|
|
|
|
|
2013-10-15 18:35:44 -07:00
|
|
|
nsPerformance* GetParentPerformance() const
|
|
|
|
{
|
|
|
|
return mParentPerformance;
|
|
|
|
}
|
|
|
|
|
2014-05-09 19:12:06 -07:00
|
|
|
nsPIDOMWindow* GetParentObject() const
|
2012-07-16 18:42:18 -07:00
|
|
|
{
|
|
|
|
return mWindow.get();
|
|
|
|
}
|
|
|
|
|
2014-04-08 15:27:18 -07:00
|
|
|
virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
|
2012-07-16 18:42:18 -07:00
|
|
|
|
|
|
|
// Performance WebIDL methods
|
|
|
|
DOMHighResTimeStamp Now();
|
2012-09-11 12:08:24 -07:00
|
|
|
nsPerformanceTiming* Timing();
|
|
|
|
nsPerformanceNavigation* Navigation();
|
2011-06-23 03:39:48 -07:00
|
|
|
|
2013-10-15 18:35:44 -07:00
|
|
|
void GetEntries(nsTArray<nsRefPtr<PerformanceEntry> >& retval);
|
|
|
|
void GetEntriesByType(const nsAString& entryType,
|
|
|
|
nsTArray<nsRefPtr<PerformanceEntry> >& retval);
|
|
|
|
void GetEntriesByName(const nsAString& name,
|
|
|
|
const mozilla::dom::Optional< nsAString >& entryType,
|
|
|
|
nsTArray<nsRefPtr<PerformanceEntry> >& retval);
|
|
|
|
void AddEntry(nsIHttpChannel* channel,
|
|
|
|
nsITimedChannel* timedChannel);
|
|
|
|
void ClearResourceTimings();
|
|
|
|
void SetResourceTimingBufferSize(uint64_t maxSize);
|
2014-05-09 19:12:06 -07:00
|
|
|
IMPL_EVENT_HANDLER(resourcetimingbufferfull)
|
2013-10-15 18:35:44 -07:00
|
|
|
|
2011-06-23 03:39:48 -07:00
|
|
|
private:
|
|
|
|
~nsPerformance();
|
2014-05-09 19:12:06 -07:00
|
|
|
void DispatchBufferFullEvent();
|
2011-06-23 03:39:48 -07:00
|
|
|
|
2014-05-09 19:12:06 -07:00
|
|
|
nsCOMPtr<nsPIDOMWindow> mWindow;
|
2011-07-04 09:44:00 -07:00
|
|
|
nsRefPtr<nsDOMNavigationTiming> mDOMTiming;
|
|
|
|
nsCOMPtr<nsITimedChannel> mChannel;
|
2012-07-16 18:42:18 -07:00
|
|
|
nsRefPtr<nsPerformanceTiming> mTiming;
|
|
|
|
nsRefPtr<nsPerformanceNavigation> mNavigation;
|
2013-10-15 18:35:44 -07:00
|
|
|
nsTArray<nsRefPtr<PerformanceEntry> > mEntries;
|
|
|
|
nsRefPtr<nsPerformance> mParentPerformance;
|
|
|
|
uint64_t mPrimaryBufferSize;
|
|
|
|
|
|
|
|
static const uint64_t kDefaultBufferSize = 150;
|
|
|
|
|
|
|
|
// Helper classes
|
|
|
|
class PerformanceEntryComparator {
|
|
|
|
public:
|
|
|
|
bool Equals(const PerformanceEntry* aElem1,
|
|
|
|
const PerformanceEntry* aElem2) const;
|
|
|
|
bool LessThan(const PerformanceEntry* aElem1,
|
|
|
|
const PerformanceEntry* aElem2) const;
|
|
|
|
};
|
2011-06-23 03:39:48 -07:00
|
|
|
};
|
|
|
|
|
2012-07-16 18:42:18 -07:00
|
|
|
inline nsDOMNavigationTiming*
|
|
|
|
nsPerformanceNavigation::GetDOMTiming() const
|
|
|
|
{
|
|
|
|
return mPerformance->GetDOMTiming();
|
|
|
|
}
|
|
|
|
|
2013-10-15 18:35:44 -07:00
|
|
|
inline nsPerformanceTiming*
|
|
|
|
nsPerformanceNavigation::GetPerformanceTiming() const
|
|
|
|
{
|
|
|
|
return mPerformance->Timing();
|
|
|
|
}
|
|
|
|
|
2012-07-16 18:42:18 -07:00
|
|
|
inline nsDOMNavigationTiming*
|
|
|
|
nsPerformanceTiming::GetDOMTiming() const
|
|
|
|
{
|
|
|
|
return mPerformance->GetDOMTiming();
|
|
|
|
}
|
|
|
|
|
2011-06-23 03:39:48 -07:00
|
|
|
#endif /* nsPerformance_h___ */
|
|
|
|
|