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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 1902993002: [DevTools] Introduce provisional blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/sdk/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index 2290fec752dd86e8bb5c170cfec0cbb0403fd882..b0dc5da2ea8d5803cfd2e846705cf77ea226b052 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -787,6 +787,33 @@ WebInspector.DebuggerModel.prototype = {
this._breakpointResolvedEventTarget.removeEventListener(breakpointId, listener, thisObject);
},
+ /**
+ * @param {!Array<string>} patterns
+ * @return {!Promise<boolean>}
+ */
+ setBlackboxPatterns: function(patterns)
+ {
+ return new Promise(setBlackboxPatterns.bind(this));
dgozman 2016/04/20 02:06:40 Let's use lushnikov's wisdom!
+
+ /**
+ * @param {function(?)} fulfill
+ * @param {function(*)} reject
+ * @this {WebInspector.DebuggerModel}
+ */
+ function setBlackboxPatterns(fulfill, reject)
+ {
+ this._agent.setBlackboxPatterns(patterns, callback);
+ /**
+ * @param {?Protocol.Error} error
+ */
+ function callback(error)
+ {
+ if (error)
+ console.error(error);
+ fulfill(!error);
+ }
+ }
+ },
/**
* @param {!WebInspector.Event} event

Powered by Google App Engine
This is Rietveld 408576698