summaryrefslogtreecommitdiffstats
path: root/devtools/shared/fronts/performance-entries.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/shared/fronts/performance-entries.js')
-rw-r--r--devtools/shared/fronts/performance-entries.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/devtools/shared/fronts/performance-entries.js b/devtools/shared/fronts/performance-entries.js
new file mode 100644
index 000000000..5f3236530
--- /dev/null
+++ b/devtools/shared/fronts/performance-entries.js
@@ -0,0 +1,17 @@
+/* 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/. */
+"use strict";
+
+const { Front, FrontClassWithSpec } = require("devtools/shared/protocol");
+const performanceSpec = require("devtools/shared/specs/performance-entries");
+
+var PerformanceEntriesFront = FrontClassWithSpec(performanceSpec, {
+ initialize: function (client, form) {
+ Front.prototype.initialize.call(this, client);
+ this.actorID = form.performanceEntriesActor;
+ this.manage(this);
+ },
+});
+
+exports.PerformanceEntriesFront = PerformanceEntriesFront;