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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11048023: Browser Plugin: Implement terminate() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 2 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
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/browser_plugin_embedder_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 7 #include "content/browser/browser_plugin/browser_plugin_embedder.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/common/browser_plugin_messages.h" 9 #include "content/common/browser_plugin_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 30 matching lines...) Expand all
41 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_UpdateRect_ACK, OnUpdateRectACK); 41 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_UpdateRect_ACK, OnUpdateRectACK);
42 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus); 42 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus);
43 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_HandleInputEvent, 43 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_HandleInputEvent,
44 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message), 44 OnHandleInputEvent(*static_cast<const IPC::SyncMessage*>(&message),
45 &handled)) 45 &handled))
46 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed, 46 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed,
47 OnPluginDestroyed); 47 OnPluginDestroyed);
48 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo) 48 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo)
49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop) 49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload) 50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
51 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
51 IPC_MESSAGE_UNHANDLED(handled = false) 52 IPC_MESSAGE_UNHANDLED(handled = false)
52 IPC_END_MESSAGE_MAP() 53 IPC_END_MESSAGE_MAP()
53 return handled; 54 return handled;
54 } 55 }
55 56
56 void BrowserPluginEmbedderHelper::OnResizeGuest( 57 void BrowserPluginEmbedderHelper::OnResizeGuest(
57 int instance_id, 58 int instance_id,
58 const BrowserPluginHostMsg_ResizeGuest_Params& params) { 59 const BrowserPluginHostMsg_ResizeGuest_Params& params) {
59 embedder_->ResizeGuest(render_view_host(), instance_id, params); 60 embedder_->ResizeGuest(render_view_host(), instance_id, params);
60 } 61 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 142 }
142 143
143 void BrowserPluginEmbedderHelper::OnStop(int instance_id) { 144 void BrowserPluginEmbedderHelper::OnStop(int instance_id) {
144 embedder_->Stop(instance_id); 145 embedder_->Stop(instance_id);
145 } 146 }
146 147
147 void BrowserPluginEmbedderHelper::OnReload(int instance_id) { 148 void BrowserPluginEmbedderHelper::OnReload(int instance_id) {
148 embedder_->Reload(instance_id); 149 embedder_->Reload(instance_id);
149 } 150 }
150 151
152 void BrowserPluginEmbedderHelper::OnTerminateGuest(int instance_id) {
153 embedder_->TerminateGuest(instance_id);
154 }
155
151 } // namespace content 156 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder_helper.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