OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |