| OLD | NEW |
| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 */ | 128 */ |
| 129 loadCookieChildren: function(path) {}, | 129 loadCookieChildren: function(path) {}, |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Removes a given cookie. | 132 * Removes a given cookie. |
| 133 * @param {string} path The path to the parent cookie. | 133 * @param {string} path The path to the parent cookie. |
| 134 */ | 134 */ |
| 135 removeCookie: function(path) {}, | 135 removeCookie: function(path) {}, |
| 136 | 136 |
| 137 /** | 137 /** |
| 138 * Removes all cookies. |
| 139 */ |
| 140 removeAllCookies: function() {}, |
| 141 |
| 142 /** |
| 138 * Initializes the protocol handler list. List is returned through JS calls | 143 * Initializes the protocol handler list. List is returned through JS calls |
| 139 * to setHandlersEnabled, setProtocolHandlers & setIgnoredProtocolHandlers. | 144 * to setHandlersEnabled, setProtocolHandlers & setIgnoredProtocolHandlers. |
| 140 */ | 145 */ |
| 141 initializeProtocolHandlerList: function() {}, | 146 initializeProtocolHandlerList: function() {}, |
| 142 | 147 |
| 143 /** | 148 /** |
| 144 * Enables or disables the ability for sites to ask to become the default | 149 * Enables or disables the ability for sites to ask to become the default |
| 145 * protocol handlers. | 150 * protocol handlers. |
| 146 * @param {boolean} enabled Whether sites can ask to become default. | 151 * @param {boolean} enabled Whether sites can ask to become default. |
| 147 */ | 152 */ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 /** @override */ | 230 /** @override */ |
| 226 loadCookieChildren: function(path) { | 231 loadCookieChildren: function(path) { |
| 227 chrome.send('loadCookie', [path]); | 232 chrome.send('loadCookie', [path]); |
| 228 }, | 233 }, |
| 229 | 234 |
| 230 /** @override */ | 235 /** @override */ |
| 231 removeCookie: function(path) { | 236 removeCookie: function(path) { |
| 232 chrome.send('removeCookie', [path]); | 237 chrome.send('removeCookie', [path]); |
| 233 }, | 238 }, |
| 234 | 239 |
| 240 /** @override */ |
| 241 removeAllCookies: function() { |
| 242 chrome.send('removeAllCookies'); |
| 243 }, |
| 244 |
| 245 |
| 235 initializeProtocolHandlerList: function() { | 246 initializeProtocolHandlerList: function() { |
| 236 chrome.send('initializeProtocolHandlerList'); | 247 chrome.send('initializeProtocolHandlerList'); |
| 237 }, | 248 }, |
| 238 | 249 |
| 239 /** @override */ | 250 /** @override */ |
| 240 setProtocolHandlerDefault: function(enabled) { | 251 setProtocolHandlerDefault: function(enabled) { |
| 241 chrome.send('setHandlersEnabled', [enabled]); | 252 chrome.send('setHandlersEnabled', [enabled]); |
| 242 }, | 253 }, |
| 243 | 254 |
| 244 /** @override */ | 255 /** @override */ |
| 245 setProtocolDefault: function(protocol, url) { | 256 setProtocolDefault: function(protocol, url) { |
| 246 chrome.send('setDefault', [[protocol, url]]); | 257 chrome.send('setDefault', [[protocol, url]]); |
| 247 }, | 258 }, |
| 248 | 259 |
| 249 /** @override */ | 260 /** @override */ |
| 250 removeProtocolHandler: function(protocol, url) { | 261 removeProtocolHandler: function(protocol, url) { |
| 251 chrome.send('removeHandler', [[protocol, url]]); | 262 chrome.send('removeHandler', [[protocol, url]]); |
| 252 }, | 263 }, |
| 253 }; | 264 }; |
| 254 | 265 |
| 255 return { | 266 return { |
| 256 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, | 267 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, |
| 257 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, | 268 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, |
| 258 }; | 269 }; |
| 259 }); | 270 }); |
| OLD | NEW |