Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Unified Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js

Issue 2128133002: Timeline AddTraceProvider API Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Timeline AddTraceProvider API Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698