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

Side by Side Diff: chrome/renderer/resources/extensions/webstore_custom_bindings.js

Issue 1840453002: [Extensions] More bindings hardening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/renderer/resources/extensions/webrtc_desktop_capture_private_custom_bindings.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Custom binding for the webstore API. 5 // Custom binding for the webstore API.
6 6
7 var webstoreNatives = requireNative('webstore'); 7 var webstoreNatives = requireNative('webstore');
8 var Event = require('event_bindings').Event; 8 var Event = require('event_bindings').Event;
9 9
10 function Installer() { 10 function Installer() {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 var installer = new Installer(); 78 var installer = new Installer();
79 79
80 var chromeWebstore = { 80 var chromeWebstore = {
81 install: function (url, onSuccess, onFailure) { 81 install: function (url, onSuccess, onFailure) {
82 installer.install(url, onSuccess, onFailure); 82 installer.install(url, onSuccess, onFailure);
83 }, 83 },
84 onInstallStageChanged: installer.onInstallStageChanged, 84 onInstallStageChanged: installer.onInstallStageChanged,
85 onDownloadProgress: installer.onDownloadProgress 85 onDownloadProgress: installer.onDownloadProgress
86 }; 86 };
87 87
88 exports.binding = chromeWebstore; 88 exports.$set('binding', chromeWebstore);
89 89
90 // Called by webstore_bindings.cc. 90 // Called by webstore_bindings.cc.
91 exports.onInstallResponse = 91 exports.onInstallResponse =
92 Installer.prototype.onInstallResponse.bind(installer); 92 Installer.prototype.onInstallResponse.bind(installer);
93 exports.onInstallStageChanged = 93 exports.onInstallStageChanged =
94 Installer.prototype.onInstallStageChanged.bind(installer); 94 Installer.prototype.onInstallStageChanged.bind(installer);
95 exports.onDownloadProgress = 95 exports.onDownloadProgress =
96 Installer.prototype.onDownloadProgress.bind(installer); 96 Installer.prototype.onDownloadProgress.bind(installer);
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/webrtc_desktop_capture_private_custom_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698