| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 to. | 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need to. |
| 10 | 10 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 "extension.onRequestExternal", | 360 "extension.onRequestExternal", |
| 361 "extension.setUpdateUrlData", | 361 "extension.setUpdateUrlData", |
| 362 "i18n.getAcceptLanguages" | 362 "i18n.getAcceptLanguages" |
| 363 ]; | 363 ]; |
| 364 for (var i = 0; i < privileged.length; i++) { | 364 for (var i = 0; i < privileged.length; i++) { |
| 365 createStub(privileged[i]); | 365 createStub(privileged[i]); |
| 366 } | 366 } |
| 367 } | 367 } |
| 368 | 368 |
| 369 })(); | 369 })(); |
| OLD | NEW |