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

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: Sync again @tott 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 4c3900daa246593b22c4fbb1ae61cd3d3062c82c..930db2726a3e556f6b711610177a1f13c68d73da 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;
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698