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

Unified Diff: chrome/renderer/extensions/extension_frame_helper.h

Issue 709933002: Add frameId to MessageSender (extension messaging API) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test: sender.tab.status = 'complete' Created 6 years, 1 month 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 | « chrome/browser/tab_contents/tab_util.cc ('k') | chrome/renderer/extensions/extension_frame_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_frame_helper.h
diff --git a/chrome/renderer/extensions/extension_frame_helper.h b/chrome/renderer/extensions/extension_frame_helper.h
index 7f414e73da52aeca9c49a34184e0df32f27e13a9..0668c80f388cd77b51c77840531dd3fa95eb409e 100644
--- a/chrome/renderer/extensions/extension_frame_helper.h
+++ b/chrome/renderer/extensions/extension_frame_helper.h
@@ -9,9 +9,13 @@
#include "content/public/renderer/render_frame_observer.h"
#include "content/public/renderer/render_frame_observer_tracker.h"
+struct ExtensionMsg_ExternalConnectionInfo;
+struct ExtensionMsg_TabConnectionInfo;
+
namespace extensions {
class Dispatcher;
+struct Message;
// RenderFrame-level plumbing for extension features.
class ExtensionFrameHelper
@@ -30,6 +34,16 @@ class ExtensionFrameHelper
// IPC handlers.
void OnAddMessageToConsole(content::ConsoleMessageLevel level,
const std::string& message);
+ void OnExtensionDispatchOnConnect(
+ int target_port_id,
+ const std::string& channel_name,
+ const ExtensionMsg_TabConnectionInfo& source,
+ const ExtensionMsg_ExternalConnectionInfo& info,
+ const std::string& tls_channel_id);
+ void OnExtensionDeliverMessage(int target_port_id,
+ const Message& message);
+ void OnExtensionDispatchOnDisconnect(int port_id,
+ const std::string& error_message);
Dispatcher* extension_dispatcher_;
« no previous file with comments | « chrome/browser/tab_contents/tab_util.cc ('k') | chrome/renderer/extensions/extension_frame_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698