OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 * @implements {Network.NetworkColumnExtensionInterface} |
5 * @implements {Network.NetworkGroupLookupInterface} | 6 * @implements {Network.NetworkGroupLookupInterface} |
6 */ | 7 */ |
7 NetworkGroupLookup.NetworkProductGroupLookup = class { | 8 NetworkGroupLookup.NetworkProductGroupLookup = class { |
8 /** | 9 /** |
9 * @override | 10 * @override |
10 * @param {!SDK.NetworkRequest} request | 11 * @param {!SDK.NetworkRequest} request |
11 * @return {?string} | 12 * @return {?string} |
12 */ | 13 */ |
13 lookup(request) { | 14 lookup(request) { |
14 return ProductRegistry.nameForUrl(request.parsedURL); | 15 return ProductRegistry.nameForUrl(request.parsedURL); |
15 } | 16 } |
| 17 /** |
| 18 * @override |
| 19 * @param {!SDK.NetworkRequest} request |
| 20 * @return {string} |
| 21 */ |
| 22 lookupColumnValue(request) { |
| 23 return this.lookup(request) || ''; |
| 24 } |
16 }; | 25 }; |
OLD | NEW |