| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This structure maps the various cookie type names from C++ (hence the |
| 6 // underscores) to arrays of the different types of data each has, along with |
| 7 // the i18n name for the description of that data type. |
| 8 // This structure serves three purposes: |
| 9 // 1) to list what subset of the cookie data we want to show in the UI. |
| 10 // 2) What order to show it in. |
| 11 // 3) What user friendly label to prefix the data with. |
| 12 /** @const */ var cookieInfo = { |
| 13 'cookie': [['name', 'cookieName'], |
| 14 ['content', 'cookieContent'], |
| 15 ['domain', 'cookieDomain'], |
| 16 ['path', 'cookiePath'], |
| 17 ['sendfor', 'cookieSendFor'], |
| 18 ['accessibleToScript', 'cookieAccessibleToScript'], |
| 19 ['created', 'cookieCreated'], |
| 20 ['expires', 'cookieExpires']], |
| 21 'app_cache': [['manifest', 'appCacheManifest'], |
| 22 ['size', 'localStorageSize'], |
| 23 ['created', 'cookieCreated'], |
| 24 ['accessed', 'cookieLastAccessed']], |
| 25 'database': [['name', 'cookieName'], |
| 26 ['desc', 'webdbDesc'], |
| 27 ['size', 'localStorageSize'], |
| 28 ['modified', 'localStorageLastModified']], |
| 29 'local_storage': [['origin', 'localStorageOrigin'], |
| 30 ['size', 'localStorageSize'], |
| 31 ['modified', 'localStorageLastModified']], |
| 32 'indexed_db': [['origin', 'indexedDbOrigin'], |
| 33 ['size', 'indexedDbSize'], |
| 34 ['modified', 'indexedDbLastModified']], |
| 35 'file_system': [['origin', 'fileSystemOrigin'], |
| 36 ['persistent', 'fileSystemPersistentUsage'], |
| 37 ['temporary', 'fileSystemTemporaryUsage']], |
| 38 'channel_id': [['serverId', 'channelIdServerId'], |
| 39 ['certType', 'channelIdType'], |
| 40 ['created', 'channelIdCreated']], |
| 41 'service_worker': [['origin', 'serviceWorkerOrigin'], |
| 42 ['size', 'serviceWorkerSize'], |
| 43 ['scopes', 'serviceWorkerScopes']], |
| 44 'cache_storage': [['origin', 'cacheStorageOrigin'], |
| 45 ['size', 'cacheStorageSize'], |
| 46 ['modified', 'cacheStorageLastModified']], |
| 47 'flash_lso': [['domain', 'cookieDomain']], |
| 48 }; |
| OLD | NEW |