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

Unified Diff: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.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/site_settings_prefs_browser_proxy.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
index 494cd1e0b1fcbeea65b20539acadff34bf913721..99af3cd0a3695b84f736eef80d51300a4070ce4b 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
@@ -109,6 +109,24 @@ cr.define('settings', function() {
* @param {string} defaultValue The id of the media device to set.
*/
setDefaultCaptureDevice: function(type, defaultValue) {},
+
+ /**
+ * Reloads all cookies. List is returned through a JS call to loadChildren.
+ */
+ reloadCookies: function() {},
+
+ /**
+ * Fetches all children of a given cookie. List is returned through a JS
+ * call to loadChildren.
+ * @param {string} path The path to the parent cookie.
+ */
+ loadCookieChildren: function(path) {},
+
+ /**
+ * Removes a given cookie.
+ * @param {string} path The path to the parent cookie.
+ */
+ removeCookie: function(path) {},
};
/**
@@ -165,6 +183,21 @@ cr.define('settings', function() {
setDefaultCaptureDevice: function(type, defaultValue) {
chrome.send('setDefaultCaptureDevice', [type, defaultValue]);
},
+
+ /** @override */
+ reloadCookies: function() {
+ chrome.send('reloadCookies');
+ },
+
+ /** @override */
+ loadCookieChildren: function(path) {
+ chrome.send('loadCookie', [path]);
+ },
+
+ /** @override */
+ removeCookie: function(path) {
+ chrome.send('removeCookie', [path]);
+ }
};
return {

Powered by Google App Engine
This is Rietveld 408576698