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

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

Issue 11956022: Browser Plugin: Allocate Instance IDs in BrowserPluginEmbedder instead of BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Diff against simplified focus Created 7 years, 11 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
Index: content/browser/browser_plugin/browser_plugin_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index b91837032e24af95b50519a54b3c485a417eaa70..7c5edf1c405e3c5fbc8b4fb40cc6eebdaf002c32 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -118,6 +118,7 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
// Message handlers.
+ void OnAllocateInstanceID(int request_id);
void OnCreateGuest(int instance_id,
const BrowserPluginHostMsg_CreateGuest_Params& params);
void OnPluginAtPositionResponse(int instance_id,
@@ -148,6 +149,7 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
GetRenderViewHostCallbackMap pending_get_render_view_callbacks_;
// Next request id for BrowserPluginMsg_PluginAtPositionRequest query.
int next_get_render_view_request_id_;
+ int instance_counter_;
DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
};

Powered by Google App Engine
This is Rietveld 408576698