OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * This class wraps the popup's form, and performs the proper clearing of data | 6 * This class wraps the popup's form, and performs the proper clearing of data |
7 * based on the user's selections. It depends on the form containing a single | 7 * based on the user's selections. It depends on the form containing a single |
8 * select element with an id of 'timeframe', and a single button with an id of | 8 * select element with an id of 'timeframe', and a single button with an id of |
9 * 'button'. When you write actual code you should probably be a little more | 9 * 'button'. When you write actual code you should probably be a little more |
10 * accepting of variance, but this is just a sample app. :) | 10 * accepting of variance, but this is just a sample app. :) |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 chrome.browsingData.remove(removal_start, { | 112 chrome.browsingData.remove(removal_start, { |
113 "appcache": true, | 113 "appcache": true, |
114 "cache": true, | 114 "cache": true, |
115 "cookies": true, | 115 "cookies": true, |
116 "downloads": true, | 116 "downloads": true, |
117 "fileSystems": true, | 117 "fileSystems": true, |
118 "formData": true, | 118 "formData": true, |
119 "history": true, | 119 "history": true, |
120 "indexedDB": true, | 120 "indexedDB": true, |
121 "localStorage": true, | 121 "localStorage": true, |
122 "originBoundCertificates": true, | 122 "serverBoundCertificates": true, |
123 "pluginData": true, | 123 "pluginData": true, |
124 "passwords": true, | 124 "passwords": true, |
125 "webSQL": true | 125 "webSQL": true |
126 }, this.handleCallback_.bind(this)); | 126 }, this.handleCallback_.bind(this)); |
127 } | 127 } |
128 } | 128 } |
129 }; | 129 }; |
130 | 130 |
131 document.addEventListener('DOMContentLoaded', function () { | 131 document.addEventListener('DOMContentLoaded', function () { |
132 window.PC = new PopupController(); | 132 window.PC = new PopupController(); |
133 }); | 133 }); |
OLD | NEW |