summaryrefslogtreecommitdiffstats
path: root/dom/performance/Performance.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:15:36 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:15:36 +0200
commit98438fa32e4f93b59359662188e164c7c828acb7 (patch)
treea32206dd3595d6e412029395ea55e3bf8438e1f5 /dom/performance/Performance.h
parent39d4a11267fd707df04bb06a74e24f36e2dbcd28 (diff)
downloadUXP-98438fa32e4f93b59359662188e164c7c828acb7.tar
UXP-98438fa32e4f93b59359662188e164c7c828acb7.tar.gz
UXP-98438fa32e4f93b59359662188e164c7c828acb7.tar.lz
UXP-98438fa32e4f93b59359662188e164c7c828acb7.tar.xz
UXP-98438fa32e4f93b59359662188e164c7c828acb7.zip
Bug 1313420 - Implement Performance.timeOrigin - part 1
https://hg.mozilla.org/mozilla-central/rev/cf0f72f0b0be
Diffstat (limited to 'dom/performance/Performance.h')
-rw-r--r--dom/performance/Performance.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/performance/Performance.h b/dom/performance/Performance.h
index 04dd76bc7..8495235a2 100644
--- a/dom/performance/Performance.h
+++ b/dom/performance/Performance.h
@@ -24,6 +24,7 @@ namespace dom {
class PerformanceEntry;
class PerformanceNavigation;
class PerformanceObserver;
+class PerformanceService;
class PerformanceTiming;
namespace workers {
@@ -69,6 +70,8 @@ public:
virtual DOMHighResTimeStamp Now() const = 0;
+ DOMHighResTimeStamp TimeOrigin();
+
void Mark(const nsAString& aName, ErrorResult& aRv);
void ClearMarks(const Optional<nsAString>& aName);
@@ -157,6 +160,8 @@ private:
uint64_t mResourceTimingBufferSize;
static const uint64_t kDefaultResourceTimingBufferSize = 150;
bool mPendingNotificationObserversTask;
+
+ RefPtr<PerformanceService> mPerformanceService;
};
} // namespace dom