summaryrefslogtreecommitdiffstats
path: root/dom/performance/PerformanceResourceTiming.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 14:15:18 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 14:15:18 +0200
commit306db80410e802b0fe9a3b5273d4cf29586a1b17 (patch)
tree5e2370df03be5b04ea225afa1e720d46840dd9bf /dom/performance/PerformanceResourceTiming.h
parent92d3042138babf4f82d254f6cb6e11831dcca506 (diff)
downloadUXP-306db80410e802b0fe9a3b5273d4cf29586a1b17.tar
UXP-306db80410e802b0fe9a3b5273d4cf29586a1b17.tar.gz
UXP-306db80410e802b0fe9a3b5273d4cf29586a1b17.tar.lz
UXP-306db80410e802b0fe9a3b5273d4cf29586a1b17.tar.xz
UXP-306db80410e802b0fe9a3b5273d4cf29586a1b17.zip
moebius#161: The Performance Resource Timing (make timestamps be relative to startTime)
https://github.com/MoonchildProductions/moebius/pull/161
Diffstat (limited to 'dom/performance/PerformanceResourceTiming.h')
-rw-r--r--dom/performance/PerformanceResourceTiming.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/performance/PerformanceResourceTiming.h b/dom/performance/PerformanceResourceTiming.h
index c2e6c0972..98a03327e 100644
--- a/dom/performance/PerformanceResourceTiming.h
+++ b/dom/performance/PerformanceResourceTiming.h
@@ -18,7 +18,7 @@ namespace mozilla {
namespace dom {
// http://www.w3.org/TR/resource-timing/#performanceresourcetiming
-class PerformanceResourceTiming final : public PerformanceEntry
+class PerformanceResourceTiming : public PerformanceEntry
{
public:
typedef mozilla::TimeStamp TimeStamp;
@@ -30,7 +30,8 @@ public:
PerformanceResourceTiming(PerformanceTiming* aPerformanceTiming,
Performance* aPerformance,
- const nsAString& aName);
+ const nsAString& aName,
+ nsIHttpChannel* aChannel = nullptr);
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
@@ -176,6 +177,7 @@ public:
protected:
virtual ~PerformanceResourceTiming();
+ void SetPropertiesFromChannel(nsIHttpChannel* aChannel);
nsString mInitiatorType;
nsString mNextHopProtocol;