OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 const DeletableItemList = options.DeletableItemList; | 6 const DeletableItemList = options.DeletableItemList; |
7 const DeletableItem = options.DeletableItem; | 7 const DeletableItem = options.DeletableItem; |
8 const ArrayDataModel = cr.ui.ArrayDataModel; | 8 const ArrayDataModel = cr.ui.ArrayDataModel; |
9 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 9 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
10 | 10 |
11 // This structure maps the various cookie type names from C++ (hence the | 11 // This structure maps the various cookie type names from C++ (hence the |
12 // underscores) to arrays of the different types of data each has, along with | 12 // underscores) to arrays of the different types of data each has, along with |
13 // the i18n name for the description of that data type. | 13 // the i18n name for the description of that data type. |
14 const cookieInfo = { | 14 const cookieInfo = { |
15 'cookie': [ ['name', 'label_cookie_name'], | 15 'cookie': [ ['name', 'label_cookie_name'], |
16 ['content', 'label_cookie_content'], | 16 ['content', 'label_cookie_content'], |
17 ['domain', 'label_cookie_domain'], | 17 ['domain', 'label_cookie_domain'], |
18 ['path', 'label_cookie_path'], | 18 ['path', 'label_cookie_path'], |
19 ['sendfor', 'label_cookie_send_for'], | 19 ['sendfor', 'label_cookie_send_for'], |
20 ['accessibleToScript', 'label_cookie_accessible_to_script'], | 20 ['accessibleToScript', 'label_cookie_accessible_to_script'], |
21 ['created', 'label_cookie_created'], | 21 ['created', 'label_cookie_created'], |
22 ['expires', 'label_cookie_expires'] ], | 22 ['expires', 'label_cookie_expires'] ], |
23 'app_cache': [ ['manifest', 'label_app_cache_manifest'], | 23 'app_cache': [ ['manifest', 'label_app_cache_manifest'], |
24 ['size', 'label_local_storage_size'], | 24 ['size', 'label_local_storage_size'], |
25 ['created', 'label_cookie_created'], | 25 ['created', 'label_cookie_created'], |
26 ['accessed', 'label_cookie_last_accessed'] ], | 26 ['accessed', 'label_cookie_last_accessed'] ], |
27 'database': [ ['name', 'label_cookie_name'], | 27 'database': [ ['name', 'label_cookie_name'], |
28 ['desc', 'label_webdb_desc'], | 28 ['desc', 'label_webdb_desc'], |
29 ['webdbSize', 'label_local_storage_size'], | 29 ['size', 'label_local_storage_size'], |
30 ['modified', 'label_local_storage_last_modified'] ], | 30 ['modified', 'label_local_storage_last_modified'] ], |
31 'local_storage': [ ['origin', 'label_local_storage_origin'], | 31 'local_storage': [ ['origin', 'label_local_storage_origin'], |
32 ['size', 'label_local_storage_size'], | 32 ['size', 'label_local_storage_size'], |
33 ['modified', 'label_local_storage_last_modified'] ], | 33 ['modified', 'label_local_storage_last_modified'] ], |
34 'indexed_db': [ ['origin', 'label_indexed_db_origin'], | 34 'indexed_db': [ ['origin', 'label_indexed_db_origin'], |
35 ['size', 'label_indexed_db_size'], | 35 ['size', 'label_indexed_db_size'], |
36 ['modified', 'label_indexed_db_last_modified'] ], | 36 ['modified', 'label_indexed_db_last_modified'] ], |
37 'file_system': [ ['origin', 'label_file_system_origin'], | 37 'file_system': [ ['origin', 'label_file_system_origin'], |
38 ['persistent', 'label_file_system_persistent_usage' ], | 38 ['persistent', 'label_file_system_persistent_usage' ], |
39 ['temporary', 'label_file_system_temporary_usage' ] ], | 39 ['temporary', 'label_file_system_temporary_usage' ] ], |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 parent.clear(); | 846 parent.clear(); |
847 this.addByParent_(parent, 0, children); | 847 this.addByParent_(parent, 0, children); |
848 parent.endBatchUpdates(); | 848 parent.endBatchUpdates(); |
849 }, | 849 }, |
850 }; | 850 }; |
851 | 851 |
852 return { | 852 return { |
853 CookiesList: CookiesList | 853 CookiesList: CookiesList |
854 }; | 854 }; |
855 }); | 855 }); |
OLD | NEW |