Index: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6cf93c52d2183f62b5f9179850d31880c6b8086 |
--- /dev/null |
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js |
@@ -0,0 +1,26 @@ |
+/** |
+ * @constructor |
+ * @param {string} extensionOrigin |
+ * @param {string} id |
+ * @param {string} categoryName |
+ * @param {string} categoryTooltip |
+ */ |
+WebInspector.ExtensionTraceProvider = function(extensionOrigin, id, categoryName, categoryTooltip) |
+{ |
+ this._extensionOrigin = extensionOrigin; |
+ this._id = id; |
+ this._categoryName = categoryName; |
+ this._categoryTooltip = categoryTooltip; |
+} |
+ |
+WebInspector.ExtensionTraceProvider.prototype = { |
+ start: function() |
+ { |
+ WebInspector.extensionServer.startTraceRecording(this._id); |
+ }, |
+ |
+ stop: function() |
+ { |
+ WebInspector.extensionServer.stopTraceRecording(this._id); |
+ } |
+} |