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

Side by Side Diff: extensions/renderer/dispatcher.cc

Issue 2540533002: [Extensions] Remove source/opener tab id from extension ports (Closed)
Patch Set: Created 4 years 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 | « extensions/renderer/dispatcher.h ('k') | extensions/renderer/extension_frame_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "extensions/renderer/dispatcher.h" 5 #include "extensions/renderer/dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 993
994 UpdateActiveExtensions(); 994 UpdateActiveExtensions();
995 } 995 }
996 996
997 void Dispatcher::OnCancelSuspend(const std::string& extension_id) { 997 void Dispatcher::OnCancelSuspend(const std::string& extension_id) {
998 DispatchEvent(extension_id, kOnSuspendCanceledEvent, base::ListValue(), 998 DispatchEvent(extension_id, kOnSuspendCanceledEvent, base::ListValue(),
999 base::DictionaryValue()); 999 base::DictionaryValue());
1000 } 1000 }
1001 1001
1002 void Dispatcher::OnDeliverMessage(int target_port_id, 1002 void Dispatcher::OnDeliverMessage(int target_port_id,
1003 int source_tab_id,
1004 const Message& message) { 1003 const Message& message) {
1005 MessagingBindings::DeliverMessage(*script_context_set_, target_port_id, 1004 MessagingBindings::DeliverMessage(*script_context_set_, target_port_id,
1006 message, 1005 message,
1007 NULL); // All render frames. 1006 NULL); // All render frames.
1008 } 1007 }
1009 1008
1010 void Dispatcher::OnDispatchOnConnect( 1009 void Dispatcher::OnDispatchOnConnect(
1011 int target_port_id, 1010 int target_port_id,
1012 const std::string& channel_name, 1011 const std::string& channel_name,
1013 const ExtensionMsg_TabConnectionInfo& source, 1012 const ExtensionMsg_TabConnectionInfo& source,
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 // The "guestViewDeny" module must always be loaded last. It registers 1465 // The "guestViewDeny" module must always be loaded last. It registers
1467 // error-providing custom elements for the GuestView types that are not 1466 // error-providing custom elements for the GuestView types that are not
1468 // available, and thus all of those types must have been checked and loaded 1467 // available, and thus all of those types must have been checked and loaded
1469 // (or not loaded) beforehand. 1468 // (or not loaded) beforehand.
1470 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1469 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1471 module_system->Require("guestViewDeny"); 1470 module_system->Require("guestViewDeny");
1472 } 1471 }
1473 } 1472 }
1474 1473
1475 } // namespace extensions 1474 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/dispatcher.h ('k') | extensions/renderer/extension_frame_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698