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

Side by Side Diff: content/browser/browser_plugin/old/browser_plugin_host.cc

Issue 10826192: Browser Plugin: Rename WebContentsImpl::browser_plugin_host() to WebContentsImpl::old_browser_plugi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_plugin/old/browser_plugin_host.h" 5 #include "content/browser/browser_plugin/old/browser_plugin_host.h"
6 6
7 #include "content/browser/browser_plugin/old/browser_plugin_host_helper.h" 7 #include "content/browser/browser_plugin/old/browser_plugin_host_helper.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/old_browser_plugin_messages.h" 10 #include "content/common/old_browser_plugin_messages.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 guest_web_contents = 97 guest_web_contents =
98 static_cast<WebContentsImpl*>( 98 static_cast<WebContentsImpl*>(
99 WebContents::Create( 99 WebContents::Create(
100 web_contents()->GetBrowserContext(), 100 web_contents()->GetBrowserContext(),
101 guest_site_instance, 101 guest_site_instance,
102 MSG_ROUTING_NONE, 102 MSG_ROUTING_NONE,
103 NULL, // base WebContents 103 NULL, // base WebContents
104 NULL // session storage namespace 104 NULL // session storage namespace
105 )); 105 ));
106 guest_observer = 106 guest_observer =
107 guest_web_contents->browser_plugin_host(); 107 guest_web_contents->old_browser_plugin_host();
108 guest_observer->set_embedder_render_process_host( 108 guest_observer->set_embedder_render_process_host(
109 render_view_host->GetProcess()); 109 render_view_host->GetProcess());
110 guest_observer->set_instance_id(container_instance_id); 110 guest_observer->set_instance_id(container_instance_id);
111 RegisterContainerInstance(container_instance_id, guest_observer); 111 RegisterContainerInstance(container_instance_id, guest_observer);
112 AddGuest(guest_web_contents, frame_id); 112 AddGuest(guest_web_contents, frame_id);
113 } 113 }
114 guest_observer->web_contents()->SetDelegate(guest_observer); 114 guest_observer->web_contents()->SetDelegate(guest_observer);
115 guest_observer->web_contents()->GetController().LoadURL( 115 guest_observer->web_contents()->GetController().LoadURL(
116 url, 116 url,
117 Referrer(), 117 Referrer(),
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 break; 231 break;
232 } 232 }
233 default: 233 default:
234 NOTREACHED() << "Unexpected notification type: " << type; 234 NOTREACHED() << "Unexpected notification type: " << type;
235 } 235 }
236 } 236 }
237 237
238 } // namespace old 238 } // namespace old
239 } // namespace content 239 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698