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

Side by Side Diff: Source/devtools/front_end/workspace/FileSystemMapping.js

Issue 1085253003: Revert of Revert of DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/devtools/front_end/workspace/FileManager.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) 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.Object} 33 * @extends {WebInspector.Object}
34 */ 34 */
35 WebInspector.FileSystemMapping = function() 35 WebInspector.FileSystemMapping = function()
36 { 36 {
37 WebInspector.Object.call(this); 37 WebInspector.Object.call(this);
38 this._fileSystemMappingSetting = WebInspector.settings.createSetting("fileSy stemMapping", {}); 38 this._fileSystemMappingSetting = WebInspector.settings.createLocalSetting("f ileSystemMapping", {});
39 /** @type {!Object.<string, !Array.<!WebInspector.FileSystemMapping.Entry>>} */ 39 /** @type {!Object.<string, !Array.<!WebInspector.FileSystemMapping.Entry>>} */
40 this._fileSystemMappings = {}; 40 this._fileSystemMappings = {};
41 this._loadFromSettings(); 41 this._loadFromSettings();
42 } 42 }
43 43
44 WebInspector.FileSystemMapping.Events = { 44 WebInspector.FileSystemMapping.Events = {
45 FileMappingAdded: "FileMappingAdded", 45 FileMappingAdded: "FileMappingAdded",
46 FileMappingRemoved: "FileMappingRemoved" 46 FileMappingRemoved: "FileMappingRemoved"
47 } 47 }
48 48
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 * @param {string} fileSystemPath 291 * @param {string} fileSystemPath
292 * @param {string} urlPrefix 292 * @param {string} urlPrefix
293 * @param {string} pathPrefix 293 * @param {string} pathPrefix
294 */ 294 */
295 WebInspector.FileSystemMapping.Entry = function(fileSystemPath, urlPrefix, pathP refix) 295 WebInspector.FileSystemMapping.Entry = function(fileSystemPath, urlPrefix, pathP refix)
296 { 296 {
297 this.fileSystemPath = fileSystemPath; 297 this.fileSystemPath = fileSystemPath;
298 this.urlPrefix = urlPrefix; 298 this.urlPrefix = urlPrefix;
299 this.pathPrefix = pathPrefix; 299 this.pathPrefix = pathPrefix;
300 } 300 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/workspace/FileManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698