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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Script.js

Issue 2739983002: DevTools: cleanup script UISourceCodes on executionContextDestroyed (Closed)
Patch Set: ad jsdoc Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 sourceMapURL, 58 sourceMapURL,
59 hasSourceURL) { 59 hasSourceURL) {
60 this.debuggerModel = debuggerModel; 60 this.debuggerModel = debuggerModel;
61 this.scriptId = scriptId; 61 this.scriptId = scriptId;
62 this.sourceURL = sourceURL; 62 this.sourceURL = sourceURL;
63 this.lineOffset = startLine; 63 this.lineOffset = startLine;
64 this.columnOffset = startColumn; 64 this.columnOffset = startColumn;
65 this.endLine = endLine; 65 this.endLine = endLine;
66 this.endColumn = endColumn; 66 this.endColumn = endColumn;
67 67
68 this._executionContextId = executionContextId; 68 this.executionContextId = executionContextId;
69 this.hash = hash; 69 this.hash = hash;
70 this._isContentScript = isContentScript; 70 this._isContentScript = isContentScript;
71 this._isLiveEdit = isLiveEdit; 71 this._isLiveEdit = isLiveEdit;
72 this.sourceMapURL = sourceMapURL; 72 this.sourceMapURL = sourceMapURL;
73 this.hasSourceURL = hasSourceURL; 73 this.hasSourceURL = hasSourceURL;
74 this._originalContentProvider = null; 74 this._originalContentProvider = null;
75 this._originalSource = null; 75 this._originalSource = null;
76 } 76 }
77 77
78 /** 78 /**
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 * @return {boolean} 128 * @return {boolean}
129 */ 129 */
130 isContentScript() { 130 isContentScript() {
131 return this._isContentScript; 131 return this._isContentScript;
132 } 132 }
133 133
134 /** 134 /**
135 * @return {?SDK.ExecutionContext} 135 * @return {?SDK.ExecutionContext}
136 */ 136 */
137 executionContext() { 137 executionContext() {
138 return this.debuggerModel.target().runtimeModel.executionContext(this._execu tionContextId); 138 return this.debuggerModel.target().runtimeModel.executionContext(this.execut ionContextId);
139 } 139 }
140 140
141 /** 141 /**
142 * @return {boolean} 142 * @return {boolean}
143 */ 143 */
144 isLiveEdit() { 144 isLiveEdit() {
145 return this._isLiveEdit; 145 return this._isLiveEdit;
146 } 146 }
147 147
148 /** 148 /**
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 function callback(error) { 346 function callback(error) {
347 if (error) 347 if (error)
348 console.error(error); 348 console.error(error);
349 fulfill(!error); 349 fulfill(!error);
350 } 350 }
351 } 351 }
352 } 352 }
353 }; 353 };
354 354
355 SDK.Script.sourceURLRegex = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m; 355 SDK.Script.sourceURLRegex = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698