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

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

Issue 10965009: BrowserPluginGuest/Embedder: Remove friend helper classes, made necessary calls public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
index fef57e639a8e5cfc1cfec670288fe5b1f272a40c..1908a64fa5078fa7fac07f5466b039bc5e769d30 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
@@ -102,7 +102,8 @@ void BrowserPluginEmbedder::NavigateGuest(RenderViewHost* render_view_host,
AddGuest(instance_id, guest_web_contents, frame_id);
guest_web_contents->SetDelegate(guest);
} else {
- guest_web_contents = static_cast<WebContentsImpl*>(guest->web_contents());
+ guest_web_contents =
+ static_cast<WebContentsImpl*>(guest->GetWebContents());
}
// We ignore loading empty urls in web_contents.
@@ -142,7 +143,7 @@ void BrowserPluginEmbedder::ResizeGuest(int instance_id,
if (!guest)
return;
WebContentsImpl* guest_web_contents =
- static_cast<WebContentsImpl*>(guest->web_contents());
+ static_cast<WebContentsImpl*>(guest->GetWebContents());
guest->SetDamageBuffer(damage_buffer,
#if defined(OS_WIN)
damage_buffer_size,
@@ -180,7 +181,7 @@ void BrowserPluginEmbedder::HandleInputEvent(int instance_id,
void BrowserPluginEmbedder::DestroyGuestByInstanceID(int instance_id) {
BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id);
if (guest) {
- WebContents* guest_web_contents = guest->web_contents();
+ WebContents* guest_web_contents = guest->GetWebContents();
// Destroy the guest's web_contents.
delete guest_web_contents;

Powered by Google App Engine
This is Rietveld 408576698