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

Unified Diff: extensions/renderer/dispatcher.h

Issue 2547753002: [Extensions] Extension Port Ids and Initialization 2.0 (Closed)
Patch Set: rkaplow 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 0342cc91735cb07149994c0fdcbb71fb4c8517ef..7f1910c7e3329339d03c6ff39524b47acd91e50d 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -59,6 +59,7 @@ class RequestSender;
class ScriptContext;
class ScriptInjectionManager;
struct Message;
+struct PortId;
// Dispatches extension control messages sent to the renderer and stores
// renderer extension related state.
@@ -155,14 +156,14 @@ class Dispatcher : public content::RenderThreadObserver,
void OnActivateExtension(const std::string& extension_id);
void OnCancelSuspend(const std::string& extension_id);
- void OnDeliverMessage(int target_port_id,
- const Message& message);
- void OnDispatchOnConnect(int target_port_id,
+ void OnDeliverMessage(const PortId& target_port_id, const Message& message);
+ void OnDispatchOnConnect(const PortId& target_port_id,
const std::string& channel_name,
const ExtensionMsg_TabConnectionInfo& source,
const ExtensionMsg_ExternalConnectionInfo& info,
const std::string& tls_channel_id);
- void OnDispatchOnDisconnect(int port_id, const std::string& error_message);
+ void OnDispatchOnDisconnect(const PortId& port_id,
+ const std::string& error_message);
void OnLoaded(
const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
void OnMessageInvoke(const std::string& extension_id,
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698