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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 /** 5 /**
6 * @fileoverview A helper object used from the "Site Settings" section to 6 * @fileoverview A helper object used from the "Site Settings" section to
7 * interact with the content settings prefs. 7 * interact with the content settings prefs.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 * @param {string} type The type to look up. 102 * @param {string} type The type to look up.
103 */ 103 */
104 getDefaultCaptureDevices: function(type) {}, 104 getDefaultCaptureDevices: function(type) {},
105 105
106 /** 106 /**
107 * Sets a default devices for a given type of media. 107 * Sets a default devices for a given type of media.
108 * @param {string} type The type of media to configure. 108 * @param {string} type The type of media to configure.
109 * @param {string} defaultValue The id of the media device to set. 109 * @param {string} defaultValue The id of the media device to set.
110 */ 110 */
111 setDefaultCaptureDevice: function(type, defaultValue) {}, 111 setDefaultCaptureDevice: function(type, defaultValue) {},
112
113 /**
114 * Reloads all cookies. List is returned through a JS call to loadChildren.
115 */
116 reloadCookies: function() {},
117
118 /**
119 * Fetches all children of a given cookie. List is returned through a JS
120 * call to loadChildren.
121 * @param {string} path The path to the parent cookie.
122 */
123 loadCookieChildren: function(path) {},
124
125 /**
126 * Removes a given cookie.
127 * @param {string} path The path to the parent cookie.
128 */
129 removeCookie: function(path) {},
112 }; 130 };
113 131
114 /** 132 /**
115 * @constructor 133 * @constructor
116 * @implements {settings.SiteSettingsPrefsBrowserProxy} 134 * @implements {settings.SiteSettingsPrefsBrowserProxy}
117 */ 135 */
118 function SiteSettingsPrefsBrowserProxyImpl() {} 136 function SiteSettingsPrefsBrowserProxyImpl() {}
119 137
120 // The singleton instance_ is replaced with a test version of this wrapper 138 // The singleton instance_ is replaced with a test version of this wrapper
121 // during testing. 139 // during testing.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 176
159 /** @override */ 177 /** @override */
160 getDefaultCaptureDevices: function(type) { 178 getDefaultCaptureDevices: function(type) {
161 chrome.send('getDefaultCaptureDevices', [type]); 179 chrome.send('getDefaultCaptureDevices', [type]);
162 }, 180 },
163 181
164 /** @override */ 182 /** @override */
165 setDefaultCaptureDevice: function(type, defaultValue) { 183 setDefaultCaptureDevice: function(type, defaultValue) {
166 chrome.send('setDefaultCaptureDevice', [type, defaultValue]); 184 chrome.send('setDefaultCaptureDevice', [type, defaultValue]);
167 }, 185 },
186
187 /** @override */
188 reloadCookies: function() {
189 chrome.send('reloadCookies');
190 },
191
192 /** @override */
193 loadCookieChildren: function(path) {
194 chrome.send('loadCookie', [path]);
195 },
196
197 /** @override */
198 removeCookie: function(path) {
199 chrome.send('removeCookie', [path]);
200 }
168 }; 201 };
169 202
170 return { 203 return {
171 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, 204 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy,
172 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, 205 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl,
173 }; 206 };
174 }); 207 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698