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

Side by Side Diff: extensions/renderer/resources/messaging.js

Issue 1417513003: [Extensions] Don't allow built-in extensions code to be overridden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jochen's Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // chrome.runtime.messaging API implementation. 5 // chrome.runtime.messaging API implementation.
6 6
7 // TODO(kalman): factor requiring chrome out of here. 7 // TODO(kalman): factor requiring chrome out of here.
8 var chrome = requireNative('chrome').GetChrome(); 8 var chrome = requireNative('chrome').GetChrome();
9 var Event = require('event_bindings').Event; 9 var Event = require('event_bindings').Event;
10 var lastError = require('lastError'); 10 var lastError = require('lastError');
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 var Port = utils.expose('Port', PortImpl, { functions: [ 370 var Port = utils.expose('Port', PortImpl, { functions: [
371 'disconnect', 371 'disconnect',
372 'postMessage' 372 'postMessage'
373 ], 373 ],
374 properties: [ 374 properties: [
375 'name', 375 'name',
376 'onDisconnect', 376 'onDisconnect',
377 'onMessage' 377 'onMessage'
378 ] }); 378 ] });
379 379
380 exports.kRequestChannel = kRequestChannel; 380 exports.$set('kRequestChannel', kRequestChannel);
381 exports.kMessageChannel = kMessageChannel; 381 exports.$set('kMessageChannel', kMessageChannel);
382 exports.kNativeMessageChannel = kNativeMessageChannel; 382 exports.$set('kNativeMessageChannel', kNativeMessageChannel);
383 exports.Port = Port; 383 exports.$set('Port', Port);
384 exports.createPort = createPort; 384 exports.$set('createPort', createPort);
385 exports.sendMessageImpl = sendMessageImpl; 385 exports.$set('sendMessageImpl', sendMessageImpl);
386 exports.sendMessageUpdateArguments = sendMessageUpdateArguments; 386 exports.$set('sendMessageUpdateArguments', sendMessageUpdateArguments);
387 387
388 // For C++ code to call. 388 // For C++ code to call.
389 exports.hasPort = hasPort; 389 exports.$set('hasPort', hasPort);
390 exports.dispatchOnConnect = dispatchOnConnect; 390 exports.$set('dispatchOnConnect', dispatchOnConnect);
391 exports.dispatchOnDisconnect = dispatchOnDisconnect; 391 exports.$set('dispatchOnDisconnect', dispatchOnDisconnect);
392 exports.dispatchOnMessage = dispatchOnMessage; 392 exports.$set('dispatchOnMessage', dispatchOnMessage);
OLDNEW
« no previous file with comments | « extensions/renderer/resources/last_error.js ('k') | extensions/renderer/resources/messaging_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698