Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3232)

Unified Diff: chrome/browser/resources/settings/site_settings/cookie_info.js

Issue 2115833003: Site Settings Desktop: Implement the cookies list and details dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/site_settings/cookie_info.js
diff --git a/chrome/browser/resources/settings/site_settings/cookie_info.js b/chrome/browser/resources/settings/site_settings/cookie_info.js
new file mode 100644
index 0000000000000000000000000000000000000000..3b912a351ed55e3299f70c97e4b3258f80d87c65
--- /dev/null
+++ b/chrome/browser/resources/settings/site_settings/cookie_info.js
@@ -0,0 +1,48 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This structure maps the various cookie type names from C++ (hence the
+// underscores) to arrays of the different types of data each has, along with
+// the i18n name for the description of that data type.
+// This structure serves three purposes:
+// 1) to list what subset of the cookie data we want to show in the UI.
+// 2) What order to show it in.
+// 3) What user friendly label to prefix the data with.
+/** @const */ var cookieInfo = {
+ 'cookie': [['name', 'cookieName'],
+ ['content', 'cookieContent'],
+ ['domain', 'cookieDomain'],
+ ['path', 'cookiePath'],
+ ['sendfor', 'cookieSendFor'],
+ ['accessibleToScript', 'cookieAccessibleToScript'],
+ ['created', 'cookieCreated'],
+ ['expires', 'cookieExpires']],
+ 'app_cache': [['manifest', 'appCacheManifest'],
+ ['size', 'localStorageSize'],
+ ['created', 'cookieCreated'],
+ ['accessed', 'cookieLastAccessed']],
+ 'database': [['name', 'cookieName'],
+ ['desc', 'webdbDesc'],
+ ['size', 'localStorageSize'],
+ ['modified', 'localStorageLastModified']],
+ 'local_storage': [['origin', 'localStorageOrigin'],
+ ['size', 'localStorageSize'],
+ ['modified', 'localStorageLastModified']],
+ 'indexed_db': [['origin', 'indexedDbOrigin'],
+ ['size', 'indexedDbSize'],
+ ['modified', 'indexedDbLastModified']],
+ 'file_system': [['origin', 'fileSystemOrigin'],
+ ['persistent', 'fileSystemPersistentUsage'],
+ ['temporary', 'fileSystemTemporaryUsage']],
+ 'channel_id': [['serverId', 'channelIdServerId'],
+ ['certType', 'channelIdType'],
+ ['created', 'channelIdCreated']],
+ 'service_worker': [['origin', 'serviceWorkerOrigin'],
+ ['size', 'serviceWorkerSize'],
+ ['scopes', 'serviceWorkerScopes']],
+ 'cache_storage': [['origin', 'cacheStorageOrigin'],
+ ['size', 'cacheStorageSize'],
+ ['modified', 'cacheStorageLastModified']],
+ 'flash_lso': [['domain', 'cookieDomain']],
+};

Powered by Google App Engine
This is Rietveld 408576698