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

Unified Diff: chrome/renderer/resources/renderer_extension_bindings.js

Issue 8143009: Reland 103263 - Revert 103263 - Merge 101221 - Reland 101111 - Only deliver extension messages to... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/renderer_extension_bindings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/renderer_extension_bindings.js
===================================================================
--- chrome/renderer/resources/renderer_extension_bindings.js (revision 104014)
+++ chrome/renderer/resources/renderer_extension_bindings.js (working copy)
@@ -46,6 +46,13 @@
chromeHidden.Port = {};
+ // Returns true if the specified port id is in this context. This is used by
+ // the C++ to avoid creating the javascript message for all the contexts that
+ // don't care about a particular message.
+ chromeHidden.Port.hasPort = function(portId) {
+ return portId in ports;
+ };
+
// Hidden port creation function. We don't want to expose an API that lets
// people add arbitrary port IDs to the port list.
chromeHidden.Port.createPort = function(portId, opt_name) {
« no previous file with comments | « chrome/renderer/extensions/renderer_extension_bindings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698