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..b88977f4a4050098314ed371133cb4db58547bab |
--- /dev/null |
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js |
@@ -0,0 +1,42 @@ |
+/** |
+ * @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 = { |
+ /** |
+ * @return {string} |
+ */ |
+ categoryName: function() |
+ { |
+ return this._categoryName; |
+ }, |
+ |
+ /** |
+ * @return {string} |
+ */ |
+ categoryTooltip: function() |
caseq
2016/07/19 22:01:16
this one and the one above look unused
|
+ { |
+ return this._categoryTooltip; |
+ }, |
+ |
+ run: function() |
caseq
2016/07/19 22:01:17
rename to start
|
+ { |
+ WebInspector.extensionServer.startTraceRecording(this._id); |
+ }, |
+ |
+ stop: function() |
+ { |
+ WebInspector.extensionServer.stopTraceRecording(this._id); |
+ } |
+} |