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/renderer/browser_plugin/browser_plugin.h" | 5 #include "content/renderer/browser_plugin/browser_plugin.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #if defined (OS_WIN) | 9 #if defined (OS_WIN) |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 void BrowserPlugin::Go(int relative_index) { | 233 void BrowserPlugin::Go(int relative_index) { |
234 if (!navigate_src_sent_) | 234 if (!navigate_src_sent_) |
235 return; | 235 return; |
236 BrowserPluginManager::Get()->Send( | 236 BrowserPluginManager::Get()->Send( |
237 new BrowserPluginHostMsg_Go(render_view_->GetRoutingID(), | 237 new BrowserPluginHostMsg_Go(render_view_->GetRoutingID(), |
238 instance_id_, | 238 instance_id_, |
239 relative_index)); | 239 relative_index)); |
240 } | 240 } |
241 | 241 |
| 242 void BrowserPlugin::TerminateGuest() { |
| 243 if (!navigate_src_sent_) |
| 244 return; |
| 245 BrowserPluginManager::Get()->Send( |
| 246 new BrowserPluginHostMsg_TerminateGuest(render_view_->GetRoutingID(), |
| 247 instance_id_)); |
| 248 } |
| 249 |
242 void BrowserPlugin::Stop() { | 250 void BrowserPlugin::Stop() { |
243 if (!navigate_src_sent_) | 251 if (!navigate_src_sent_) |
244 return; | 252 return; |
245 BrowserPluginManager::Get()->Send( | 253 BrowserPluginManager::Get()->Send( |
246 new BrowserPluginHostMsg_Stop(render_view_->GetRoutingID(), | 254 new BrowserPluginHostMsg_Stop(render_view_->GetRoutingID(), |
247 instance_id_)); | 255 instance_id_)); |
248 } | 256 } |
249 | 257 |
250 void BrowserPlugin::Reload() { | 258 void BrowserPlugin::Reload() { |
251 if (!navigate_src_sent_) | 259 if (!navigate_src_sent_) |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 void* notify_data) { | 626 void* notify_data) { |
619 } | 627 } |
620 | 628 |
621 void BrowserPlugin::didFailLoadingFrameRequest( | 629 void BrowserPlugin::didFailLoadingFrameRequest( |
622 const WebKit::WebURL& url, | 630 const WebKit::WebURL& url, |
623 void* notify_data, | 631 void* notify_data, |
624 const WebKit::WebURLError& error) { | 632 const WebKit::WebURLError& error) { |
625 } | 633 } |
626 | 634 |
627 } // namespace content | 635 } // namespace content |
OLD | NEW |