OLD | NEW |
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 Loading... |
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; |
OLD | NEW |