Chromium Code Reviews| 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 | |
|
dschuyler
2016/07/06 17:19:38
Instead of having any mapping like this, could the
Finnur
2016/07/07 10:54:00
I'm sure it would be an improvement, even though I
| |
| 6 // underscores) to arrays of the different types of data each has, along with | |
|
dschuyler
2016/07/06 17:19:38
Are the underscore labels passed from c++ to JS? I
Finnur
2016/07/07 10:54:00
This comment refers to the keys in this structure,
| |
| 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', 'label_cookie_name'], | |
|
dschuyler
2016/07/06 17:19:38
Having 'label_' on each is not informative imo. :)
Finnur
2016/07/07 10:54:00
Done.
| |
| 14 ['content', 'label_cookie_content'], | |
| 15 ['domain', 'label_cookie_domain'], | |
| 16 ['path', 'label_cookie_path'], | |
| 17 ['sendfor', 'label_cookie_send_for'], | |
| 18 ['accessibleToScript', 'label_cookie_accessible_to_script'], | |
| 19 ['created', 'label_cookie_created'], | |
| 20 ['expires', 'label_cookie_expires']], | |
| 21 'app_cache': [['manifest', 'label_app_cache_manifest'], | |
| 22 ['size', 'label_local_storage_size'], | |
| 23 ['created', 'label_cookie_created'], | |
| 24 ['accessed', 'label_cookie_last_accessed']], | |
| 25 'database': [['name', 'label_cookie_name'], | |
| 26 ['desc', 'label_webdb_desc'], | |
| 27 ['size', 'label_local_storage_size'], | |
| 28 ['modified', 'label_local_storage_last_modified']], | |
| 29 'local_storage': [['origin', 'label_local_storage_origin'], | |
| 30 ['size', 'label_local_storage_size'], | |
| 31 ['modified', 'label_local_storage_last_modified']], | |
| 32 'indexed_db': [['origin', 'label_indexed_db_origin'], | |
| 33 ['size', 'label_indexed_db_size'], | |
| 34 ['modified', 'label_indexed_db_last_modified']], | |
| 35 'file_system': [['origin', 'label_file_system_origin'], | |
| 36 ['persistent', 'label_file_system_persistent_usage'], | |
| 37 ['temporary', 'label_file_system_temporary_usage']], | |
| 38 'channel_id': [['serverId', 'label_channel_id_server_id'], | |
| 39 ['certType', 'label_channel_id_type'], | |
| 40 ['created', 'label_channel_id_created']], | |
| 41 'service_worker': [['origin', 'label_service_worker_origin'], | |
| 42 ['size', 'label_service_worker_size'], | |
| 43 ['scopes', 'label_service_worker_scopes']], | |
| 44 'cache_storage': [['origin', 'label_cache_storage_origin'], | |
| 45 ['size', 'label_cache_storage_size'], | |
| 46 ['modified', 'label_cache_storage_last_modified']], | |
|
dschuyler
2016/07/06 17:19:38
The indent looks off here.
Finnur
2016/07/07 10:54:01
Done.
| |
| 47 'flash_lso': [['domain', 'label_cookie_domain']], | |
| 48 }; | |
| OLD | NEW |