Index: content/browser/browser_plugin/browser_plugin_guest.h |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h |
index f302c6d9d094de9462f4fe3bf2b4b534841ff3e6..d739434d2007207c1f7108cd6a0b0a3b13e6dd98 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.h |
+++ b/content/browser/browser_plugin/browser_plugin_guest.h |
@@ -386,6 +386,12 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost, |
void OnWillAttachComplete(WebContentsImpl* embedder_web_contents, |
const BrowserPluginHostMsg_Attach_Params& params); |
+ // Returns identical message with current browser_plugin_instance_id() if |
+ // the input was created with browser_plugin::kInstanceIdNone, else it returns |
+ // the input message unmodified. If no current browser_plugin_instance_id() |
+ // is set, or anything goes wrong, the input message is returned. |
+ IPC::Message* UpdateInstanceIdIfNecessary(IPC::Message* msg) const; |
+ |
// Forwards all messages from the |pending_messages_| queue to the embedder. |
void SendQueuedMessages(); |