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

Side by Side Diff: chrome/renderer/resources/renderer_extension_bindings.js

Issue 6683060: Private API for extensions like ssh-client that need access to TCP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed changes to rand_util_unittest Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need to.
10 // to.
11 10
12 var chrome = chrome || {}; 11 var chrome = chrome || {};
13 (function () { 12 (function () {
14 native function OpenChannelToExtension(sourceId, targetId, name); 13 native function OpenChannelToExtension(sourceId, targetId, name);
15 native function CloseChannel(portId, notifyBrowser); 14 native function CloseChannel(portId, notifyBrowser);
16 native function PortAddRef(portId); 15 native function PortAddRef(portId);
17 native function PortRelease(portId); 16 native function PortRelease(portId);
18 native function PostMessage(portId, msg); 17 native function PostMessage(portId, msg);
19 native function GetChromeHidden(); 18 native function GetChromeHidden();
20 native function GetL10nMessage(); 19 native function GetL10nMessage();
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 "fileBrowserHandler", 320 "fileBrowserHandler",
322 "fileBrowserPrivate", 321 "fileBrowserPrivate",
323 "fileSystem", 322 "fileSystem",
324 "management", 323 "management",
325 "omnibox", 324 "omnibox",
326 "pageAction", 325 "pageAction",
327 "pageActions", 326 "pageActions",
328 "tabs", 327 "tabs",
329 "test", 328 "test",
330 "toolstrip", 329 "toolstrip",
330 "webSocketProxyPrivate",
331 "webstorePrivate", 331 "webstorePrivate",
332 "windows", 332 "windows",
333 333
334 // Functions/events/properties within the extension namespace. 334 // Functions/events/properties within the extension namespace.
335 "extension.getBackgroundPage", 335 "extension.getBackgroundPage",
336 "extension.getExtensionTabs", 336 "extension.getExtensionTabs",
337 "extension.getToolstrips", 337 "extension.getToolstrips",
338 "extension.getViews", 338 "extension.getViews",
339 "extension.isAllowedIncognitoAccess", 339 "extension.isAllowedIncognitoAccess",
340 "extension.isAllowedFileSchemeAccess", 340 "extension.isAllowedFileSchemeAccess",
341 "extension.onConnectExternal", 341 "extension.onConnectExternal",
342 "extension.onRequestExternal", 342 "extension.onRequestExternal",
343 "extension.setUpdateUrlData", 343 "extension.setUpdateUrlData",
344 "i18n.getAcceptLanguages" 344 "i18n.getAcceptLanguages"
345 ]; 345 ];
346 for (var i = 0; i < privileged.length; i++) { 346 for (var i = 0; i < privileged.length; i++) {
347 createStub(privileged[i]); 347 createStub(privileged[i]);
348 } 348 }
349 } 349 }
350 350
351 })(); 351 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698