| 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 /** | 5 /** |
| 6 * @typedef {{hasChildren: boolean, | 6 * @typedef {{hasChildren: boolean, |
| 7 * id: string, | 7 * id: string, |
| 8 * title: string, | 8 * title: string, |
| 9 * totalUsage: string, | 9 * totalUsage: string, |
| 10 * type: string}} | 10 * type: string}} |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'app_cache': loadTimeData.getString('cookieAppCache'), | 49 'app_cache': loadTimeData.getString('cookieAppCache'), |
| 50 'cache_storage': loadTimeData.getString('cookieCacheStorage'), | 50 'cache_storage': loadTimeData.getString('cookieCacheStorage'), |
| 51 'channel_id': loadTimeData.getString('cookieChannelId'), | 51 'channel_id': loadTimeData.getString('cookieChannelId'), |
| 52 'cookie': loadTimeData.getString('cookieSingular'), | 52 'cookie': loadTimeData.getString('cookieSingular'), |
| 53 'database': loadTimeData.getString('cookieDatabaseStorage'), | 53 'database': loadTimeData.getString('cookieDatabaseStorage'), |
| 54 'file_system': loadTimeData.getString('cookieFileSystem'), | 54 'file_system': loadTimeData.getString('cookieFileSystem'), |
| 55 'flash_lso': loadTimeData.getString('cookieFlashLso'), | 55 'flash_lso': loadTimeData.getString('cookieFlashLso'), |
| 56 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'), | 56 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'), |
| 57 'local_storage': loadTimeData.getString('cookieLocalStorage'), | 57 'local_storage': loadTimeData.getString('cookieLocalStorage'), |
| 58 'service_worker': loadTimeData.getString('cookieServiceWorker'), | 58 'service_worker': loadTimeData.getString('cookieServiceWorker'), |
| 59 'media_license': loadTimeData.getString('cookieMediaLicense'), |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 /** | 62 /** |
| 62 * Retrieves the human friendly text to show for the type of cookie. | 63 * Retrieves the human friendly text to show for the type of cookie. |
| 63 * @param {string} dataType The datatype to look up. | 64 * @param {string} dataType The datatype to look up. |
| 64 * @param {string} totalUsage How much data is being consumed. | 65 * @param {string} totalUsage How much data is being consumed. |
| 65 * @return {string} The human-friendly description for this cookie. | 66 * @return {string} The human-friendly description for this cookie. |
| 66 */ | 67 */ |
| 67 function getCookieDataCategoryText(dataType, totalUsage) { | 68 function getCookieDataCategoryText(dataType, totalUsage) { |
| 68 if (dataType == 'quota') | 69 if (dataType == 'quota') |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 252 } |
| 252 } | 253 } |
| 253 return out; | 254 return out; |
| 254 }, | 255 }, |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 return { | 258 return { |
| 258 CookieTreeNode: CookieTreeNode, | 259 CookieTreeNode: CookieTreeNode, |
| 259 }; | 260 }; |
| 260 }); | 261 }); |
| OLD | NEW |