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

Unified Diff: content/public/browser/message_port_delegate.h

Issue 944443003: Step two of optionally sending messages to/from message ports as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-take2
Patch Set: use auto where it makes sense Created 5 years, 10 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/common/view_messages.h ('k') | content/public/browser/message_port_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/message_port_delegate.h
diff --git a/content/public/browser/message_port_delegate.h b/content/public/browser/message_port_delegate.h
index 7b89e4db210e2ce03cdf5e329b553062c51c5881..7c2de5bbde639534b86580c13f5e01eb696a6a1a 100644
--- a/content/public/browser/message_port_delegate.h
+++ b/content/public/browser/message_port_delegate.h
@@ -17,6 +17,7 @@
namespace content {
struct MessagePortMessage;
+struct TransferredMessagePort;
// Delegate used by MessagePortService to send messages to message ports to the
// correct renderer. Delegates are responsible for managing their own lifetime,
@@ -26,9 +27,10 @@ class CONTENT_EXPORT MessagePortDelegate {
public:
// Sends a message to the given route. Implementations are responsible for
// updating MessagePortService with new routes for the sent message ports.
- virtual void SendMessage(int route_id,
- const MessagePortMessage& message,
- const std::vector<int>& sent_message_port_ids) = 0;
+ virtual void SendMessage(
+ int route_id,
+ const MessagePortMessage& message,
+ const std::vector<TransferredMessagePort>& sent_message_ports) = 0;
// Requests messages to the given route to be queued.
virtual void SendMessagesAreQueued(int route_id) = 0;
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/message_port_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698