| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @implements {SDK.TargetManager.Observer} | 5 * @implements {SDK.TargetManager.Observer} |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Bindings.BlackboxManager = class { | 8 Bindings.BlackboxManager = class { |
| 9 /** | 9 /** |
| 10 * @param {!Bindings.DebuggerWorkspaceBinding} debuggerWorkspaceBinding | 10 * @param {!Bindings.DebuggerWorkspaceBinding} debuggerWorkspaceBinding |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 297 } |
| 298 | 298 |
| 299 _patternChangeFinishedForTests() { | 299 _patternChangeFinishedForTests() { |
| 300 // This method is sniffed in tests. | 300 // This method is sniffed in tests. |
| 301 } | 301 } |
| 302 | 302 |
| 303 /** | 303 /** |
| 304 * @param {!Common.Event} event | 304 * @param {!Common.Event} event |
| 305 */ | 305 */ |
| 306 _globalObjectCleared(event) { | 306 _globalObjectCleared(event) { |
| 307 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.target); | 307 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.data); |
| 308 this._debuggerModelData.delete(debuggerModel); | 308 this._debuggerModelData.delete(debuggerModel); |
| 309 this._isBlackboxedURLCache.clear(); | 309 this._isBlackboxedURLCache.clear(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 /** | 312 /** |
| 313 * @param {!Common.Event} event | 313 * @param {!Common.Event} event |
| 314 */ | 314 */ |
| 315 _parsedScriptSource(event) { | 315 _parsedScriptSource(event) { |
| 316 var script = /** @type {!SDK.Script} */ (event.data); | 316 var script = /** @type {!SDK.Script} */ (event.data); |
| 317 this._addScript(script); | 317 this._addScript(script); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 if (scheme === 'chrome-extension') | 423 if (scheme === 'chrome-extension') |
| 424 prefix += parsedURL.host + '\\b'; | 424 prefix += parsedURL.host + '\\b'; |
| 425 prefix += '.*'; | 425 prefix += '.*'; |
| 426 } | 426 } |
| 427 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? '$' : '\\b'); | 427 return prefix + name.escapeForRegExp() + (url.endsWith(name) ? '$' : '\\b'); |
| 428 } | 428 } |
| 429 }; | 429 }; |
| 430 | 430 |
| 431 /** @type {!Bindings.BlackboxManager} */ | 431 /** @type {!Bindings.BlackboxManager} */ |
| 432 Bindings.blackboxManager; | 432 Bindings.blackboxManager; |
| OLD | NEW |