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

Unified Diff: content/browser/message_port_message_filter.cc

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/message_port_message_filter.h ('k') | content/browser/message_port_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/message_port_message_filter.cc
diff --git a/content/browser/message_port_message_filter.cc b/content/browser/message_port_message_filter.cc
index a0949fa26c1c42b9fe0e0aa10fdf642c2d6f5f3d..3aec44a55aa20cf83750c0f1a3ab4d9a7416bbb6 100644
--- a/content/browser/message_port_message_filter.cc
+++ b/content/browser/message_port_message_filter.cc
@@ -64,8 +64,8 @@ int MessagePortMessageFilter::GetNextRoutingID() {
void MessagePortMessageFilter::SendMessage(
int route_id,
- const MessagePortMessage& message,
- const std::vector<TransferredMessagePort>& sent_message_ports) {
+ const base::string16& message,
+ const std::vector<int>& sent_message_ports) {
// Generate new routing ids for all ports that were sent around. This avoids
// waiting for the created ports to send a sync message back to get routing
// ids.
@@ -80,7 +80,7 @@ void MessagePortMessageFilter::SendMessagesAreQueued(int route_id) {
}
void MessagePortMessageFilter::UpdateMessagePortsWithNewRoutes(
- const std::vector<TransferredMessagePort>& message_ports,
+ const std::vector<int>& message_ports,
std::vector<int>* new_routing_ids) {
DCHECK(new_routing_ids);
new_routing_ids->clear();
@@ -89,7 +89,7 @@ void MessagePortMessageFilter::UpdateMessagePortsWithNewRoutes(
for (size_t i = 0; i < message_ports.size(); ++i) {
(*new_routing_ids)[i] = GetNextRoutingID();
MessagePortService::GetInstance()->UpdateMessagePort(
- message_ports[i].id,
+ message_ports[i],
this,
(*new_routing_ids)[i]);
}
« no previous file with comments | « content/browser/message_port_message_filter.h ('k') | content/browser/message_port_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698