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

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

Issue 10412056: Browser Plugin: Remove MapInstance from BrowserPluginHost + More cross-process navigation work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified size logic Created 8 years, 7 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_host_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_host_helper.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_host.h" 7 #include "content/browser/browser_plugin/browser_plugin_host.h"
8 #include "content/common/browser_plugin_messages.h" 8 #include "content/common/browser_plugin_messages.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 28 matching lines...) Expand all
39 void BrowserPluginHostHelper::OnConnectToChannel( 39 void BrowserPluginHostHelper::OnConnectToChannel(
40 const IPC::ChannelHandle& channel_handle) { 40 const IPC::ChannelHandle& channel_handle) {
41 browser_plugin_host_->ConnectEmbedderToChannel( 41 browser_plugin_host_->ConnectEmbedderToChannel(
42 render_view_host(), 42 render_view_host(),
43 channel_handle); 43 channel_handle);
44 } 44 }
45 45
46 void BrowserPluginHostHelper::OnNavigateGuestFromEmbedder( 46 void BrowserPluginHostHelper::OnNavigateGuestFromEmbedder(
47 int32 instance_id, 47 int32 instance_id,
48 long long frame_id, 48 long long frame_id,
49 const std::string& src, 49 const std::string& src) {
50 const gfx::Size& size) {
51 browser_plugin_host_->NavigateGuestFromEmbedder( 50 browser_plugin_host_->NavigateGuestFromEmbedder(
52 render_view_host(), 51 render_view_host(),
53 instance_id, 52 instance_id,
54 frame_id, 53 frame_id,
55 src, 54 src);
56 size);
57 } 55 }
58 56
59 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) { 57 void BrowserPluginHostHelper::OnResizeGuest(int width, int height) {
60 render_view_host()->GetView()->SetSize(gfx::Size(width, height)); 58 render_view_host()->GetView()->SetSize(gfx::Size(width, height));
61 } 59 }
62 60
63 } // namespace content 61 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698