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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 1410753003: Update IPC browser_plugin_instance_id before sending queued messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move computation outside CHECK(). Created 5 years, 2 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 | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698