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

Unified Diff: content/browser/message_port_service.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/browser/message_port_provider_browsertest.cc ('k') | content/browser/message_port_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/message_port_service.h
diff --git a/content/browser/message_port_service.h b/content/browser/message_port_service.h
index 1e561b2acab729a4f3bc8067510dba36ccecf0f3..d5e3379d57d7eb724bb937b7b57ef13e51e761c2 100644
--- a/content/browser/message_port_service.h
+++ b/content/browser/message_port_service.h
@@ -21,7 +21,8 @@ class MessagePortDelegate;
class CONTENT_EXPORT MessagePortService {
public:
- typedef std::vector<std::pair<content::MessagePortMessage, std::vector<int>>>
+ typedef std::vector<std::pair<content::MessagePortMessage,
+ std::vector<TransferredMessagePort>>>
QueuedMessages;
// Returns the MessagePortService singleton.
@@ -33,9 +34,10 @@ class CONTENT_EXPORT MessagePortService {
int* message_port_id);
void Destroy(int message_port_id);
void Entangle(int local_message_port_id, int remote_message_port_id);
- void PostMessage(int sender_message_port_id,
- const MessagePortMessage& message,
- const std::vector<int>& sent_message_port_ids);
+ void PostMessage(
+ int sender_message_port_id,
+ const MessagePortMessage& message,
+ const std::vector<TransferredMessagePort>& sent_message_ports);
void QueueMessages(int message_port_id);
void SendQueuedMessages(int message_port_id,
const QueuedMessages& queued_messages);
@@ -72,9 +74,10 @@ class CONTENT_EXPORT MessagePortService {
MessagePortService();
~MessagePortService();
- void PostMessageTo(int message_port_id,
- const MessagePortMessage& message,
- const std::vector<int>& sent_message_port_ids);
+ void PostMessageTo(
+ int message_port_id,
+ const MessagePortMessage& message,
+ const std::vector<TransferredMessagePort>& sent_message_ports);
// Handles the details of removing a message port id. Before calling this,
// verify that the message port id exists.
« no previous file with comments | « content/browser/message_port_provider_browsertest.cc ('k') | content/browser/message_port_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698