| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This script contains unprivileged javascript APIs related to chrome | 5 // This script contains unprivileged javascript APIs related to chrome |
| 6 // extensions. It is loaded by any extension-related context, such as content | 6 // extensions. It is loaded by any extension-related context, such as content |
| 7 // scripts or toolstrips. | 7 // scripts or toolstrips. |
| 8 // See user_script_slave.cc for script that is loaded by content scripts only. | 8 // See user_script_slave.cc for script that is loaded by content scripts only. |
| 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need | 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need |
| 10 // to. | 10 // to. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 var privileged = [ | 268 var privileged = [ |
| 269 // Entire namespaces. | 269 // Entire namespaces. |
| 270 "bookmarks", | 270 "bookmarks", |
| 271 "browserAction", | 271 "browserAction", |
| 272 "contextMenus", | 272 "contextMenus", |
| 273 "cookies", | 273 "cookies", |
| 274 "devtools", | 274 "devtools", |
| 275 "experimental.accessibility", | 275 "experimental.accessibility", |
| 276 "experimental.bookmarkManager", | 276 "experimental.bookmarkManager", |
| 277 "experimental.clipboard", | 277 "experimental.clipboard", |
| 278 "experimental.contentSettings.misc", |
| 278 "experimental.extension", | 279 "experimental.extension", |
| 279 "experimental.infobars", | 280 "experimental.infobars", |
| 280 "experimental.input", | 281 "experimental.input", |
| 281 "experimental.metrics", | 282 "experimental.metrics", |
| 282 "experimental.popup", | 283 "experimental.popup", |
| 283 "experimental.processes", | 284 "experimental.processes", |
| 284 "experimental.tts", | 285 "experimental.tts", |
| 285 "experimental.proxy", | 286 "experimental.proxy", |
| 286 "experimental.rlz", | 287 "experimental.rlz", |
| 287 "experimental.sidebar", | 288 "experimental.sidebar", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 308 "extension.onRequestExternal", | 309 "extension.onRequestExternal", |
| 309 "extension.setUpdateUrlData", | 310 "extension.setUpdateUrlData", |
| 310 "i18n.getAcceptLanguages" | 311 "i18n.getAcceptLanguages" |
| 311 ]; | 312 ]; |
| 312 for (var i = 0; i < privileged.length; i++) { | 313 for (var i = 0; i < privileged.length; i++) { |
| 313 createStub(privileged[i]); | 314 createStub(privileged[i]); |
| 314 } | 315 } |
| 315 } | 316 } |
| 316 | 317 |
| 317 })(); | 318 })(); |
| OLD | NEW |