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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js

Issue 2529303003: DevTools: move FileSystemMapping from Workspace to Persistence (Closed)
Patch Set: fix tests Created 4 years 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Persistence.Persistence = class extends Common.Object { 7 Persistence.Persistence = class extends Common.Object {
8 /** 8 /**
9 * @param {!Workspace.Workspace} workspace 9 * @param {!Workspace.Workspace} workspace
10 * @param {!Bindings.BreakpointManager} breakpointManager 10 * @param {!Bindings.BreakpointManager} breakpointManager
11 * @param {!Workspace.FileSystemMapping} fileSystemMapping 11 * @param {!Persistence.FileSystemMapping} fileSystemMapping
12 */ 12 */
13 constructor(workspace, breakpointManager, fileSystemMapping) { 13 constructor(workspace, breakpointManager, fileSystemMapping) {
14 super(); 14 super();
15 this._workspace = workspace; 15 this._workspace = workspace;
16 this._breakpointManager = breakpointManager; 16 this._breakpointManager = breakpointManager;
17 /** @type {!Map<string, number>} */ 17 /** @type {!Map<string, number>} */
18 this._filePathPrefixesToBindingCount = new Map(); 18 this._filePathPrefixesToBindingCount = new Map();
19 19
20 if (Runtime.experiments.isEnabled('persistence2')) { 20 if (Runtime.experiments.isEnabled('persistence2')) {
21 var linkDecorator = new Persistence.PersistenceUtils.LinkDecorator(this); 21 var linkDecorator = new Persistence.PersistenceUtils.LinkDecorator(this);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 */ 241 */
242 constructor(network, fileSystem, exactMatch) { 242 constructor(network, fileSystem, exactMatch) {
243 this.network = network; 243 this.network = network;
244 this.fileSystem = fileSystem; 244 this.fileSystem = fileSystem;
245 this.exactMatch = exactMatch; 245 this.exactMatch = exactMatch;
246 } 246 }
247 }; 247 };
248 248
249 /** @type {!Persistence.Persistence} */ 249 /** @type {!Persistence.Persistence} */
250 Persistence.persistence; 250 Persistence.persistence;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698