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

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

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 void BrowserPluginHost::RegisterContainerInstance( 52 void BrowserPluginHost::RegisterContainerInstance(
53 int container_id, 53 int container_id,
54 BrowserPluginHost* observer) { 54 BrowserPluginHost* observer) {
55 DCHECK(guests_by_container_id_.find(container_id) == 55 DCHECK(guests_by_container_id_.find(container_id) ==
56 guests_by_container_id_.end()); 56 guests_by_container_id_.end());
57 guests_by_container_id_[container_id] = observer; 57 guests_by_container_id_[container_id] = observer;
58 } 58 }
59 59
60 bool BrowserPluginHost::TakeFocus(bool reverse) { 60 bool BrowserPluginHost::TakeFocus(WebContents* web_contents, bool reverse) {
61 embedder_render_process_host()->Send( 61 embedder_render_process_host()->Send(
62 new OldBrowserPluginMsg_AdvanceFocus(instance_id(), reverse)); 62 new OldBrowserPluginMsg_AdvanceFocus(instance_id(), reverse));
63 return true; 63 return true;
64 } 64 }
65 65
66 bool BrowserPluginHost::OnMessageReceived(const IPC::Message& message) { 66 bool BrowserPluginHost::OnMessageReceived(const IPC::Message& message) {
67 bool handled = true; 67 bool handled = true;
68 IPC_BEGIN_MESSAGE_MAP(BrowserPluginHost, message) 68 IPC_BEGIN_MESSAGE_MAP(BrowserPluginHost, message)
69 IPC_MESSAGE_HANDLER(OldBrowserPluginHostMsg_NavigateFromGuest, 69 IPC_MESSAGE_HANDLER(OldBrowserPluginHostMsg_NavigateFromGuest,
70 OnNavigateFromGuest) 70 OnNavigateFromGuest)
(...skipping 159 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 | « content/browser/browser_plugin/old/browser_plugin_host.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698