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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystemManager.js

Issue 2295693003: DevTools: cleanup WI.NetworkMapping nits (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 var fileSystemPath = WebInspector.IsolatedFileSystemManager.normalizePat h(embedderPath); 201 var fileSystemPath = WebInspector.IsolatedFileSystemManager.normalizePat h(embedderPath);
202 var isolatedFileSystem = this._fileSystems.get(fileSystemPath); 202 var isolatedFileSystem = this._fileSystems.get(fileSystemPath);
203 if (!isolatedFileSystem) 203 if (!isolatedFileSystem)
204 return; 204 return;
205 this._fileSystems.delete(fileSystemPath); 205 this._fileSystems.delete(fileSystemPath);
206 isolatedFileSystem.fileSystemRemoved(); 206 isolatedFileSystem.fileSystemRemoved();
207 this.dispatchEventToListeners(WebInspector.IsolatedFileSystemManager.Eve nts.FileSystemRemoved, isolatedFileSystem); 207 this.dispatchEventToListeners(WebInspector.IsolatedFileSystemManager.Eve nts.FileSystemRemoved, isolatedFileSystem);
208 }, 208 },
209 209
210 /** 210 /**
211 * @return {!Array<string>} 211 * @return {!Array<!WebInspector.IsolatedFileSystem>}
212 */ 212 */
213 fileSystemPaths: function() 213 fileSystems: function()
214 { 214 {
215 return this._fileSystems.keysArray(); 215 return this._fileSystems.valuesArray();
216 }, 216 },
217 217
218 /** 218 /**
219 * @param {string} fileSystemPath 219 * @param {string} fileSystemPath
220 * @return {?WebInspector.IsolatedFileSystem} 220 * @return {?WebInspector.IsolatedFileSystem}
221 */ 221 */
222 fileSystem: function(fileSystemPath) 222 fileSystem: function(fileSystemPath)
223 { 223 {
224 return this._fileSystems.get(fileSystemPath) || null; 224 return this._fileSystems.get(fileSystemPath) || null;
225 }, 225 },
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 this._callbacks.delete(requestId); 356 this._callbacks.delete(requestId);
357 }, 357 },
358 358
359 __proto__: WebInspector.Object.prototype 359 __proto__: WebInspector.Object.prototype
360 } 360 }
361 361
362 /** 362 /**
363 * @type {!WebInspector.IsolatedFileSystemManager} 363 * @type {!WebInspector.IsolatedFileSystemManager}
364 */ 364 */
365 WebInspector.isolatedFileSystemManager; 365 WebInspector.isolatedFileSystemManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698