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

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

Issue 10965009: BrowserPluginGuest/Embedder: Remove friend helper classes, made necessary calls public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync again @tott Created 8 years, 3 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
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "content/browser/browser_plugin/browser_plugin_guest_helper.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest_helper.h"
10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 new BrowserPluginMsg_AdvanceFocus(instance_id(), reverse)); 66 new BrowserPluginMsg_AdvanceFocus(instance_id(), reverse));
67 return true; 67 return true;
68 } 68 }
69 69
70 void BrowserPluginGuest::RendererUnresponsive(WebContents* source) { 70 void BrowserPluginGuest::RendererUnresponsive(WebContents* source) {
71 base::ProcessHandle process_handle = 71 base::ProcessHandle process_handle =
72 web_contents()->GetRenderProcessHost()->GetHandle(); 72 web_contents()->GetRenderProcessHost()->GetHandle();
73 base::KillProcess(process_handle, RESULT_CODE_HUNG, false); 73 base::KillProcess(process_handle, RESULT_CODE_HUNG, false);
74 } 74 }
75 75
76 WebContents* BrowserPluginGuest::GetWebContents() {
77 return web_contents();
78 }
79
76 void BrowserPluginGuest::SetDamageBuffer( 80 void BrowserPluginGuest::SetDamageBuffer(
77 TransportDIB* damage_buffer, 81 TransportDIB* damage_buffer,
78 #if defined(OS_WIN) 82 #if defined(OS_WIN)
79 int damage_buffer_size, 83 int damage_buffer_size,
80 #endif 84 #endif
81 const gfx::Size& damage_view_size, 85 const gfx::Size& damage_view_size,
82 float scale_factor) { 86 float scale_factor) {
83 // Sanity check: Verify that we've correctly shared the damage buffer memory 87 // Sanity check: Verify that we've correctly shared the damage buffer memory
84 // between the embedder and browser processes. 88 // between the embedder and browser processes.
85 DCHECK(*static_cast<unsigned int*>(damage_buffer->memory()) == 0xdeadbeef); 89 DCHECK(*static_cast<unsigned int*>(damage_buffer->memory()) == 0xdeadbeef);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 iter.Advance(); 288 iter.Advance();
285 } 289 }
286 } 290 }
287 291
288 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) { 292 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) {
289 DCHECK(embedder_render_process_host()); 293 DCHECK(embedder_render_process_host());
290 embedder_render_process_host()->Send(msg); 294 embedder_render_process_host()->Send(msg);
291 } 295 }
292 296
293 } // namespace content 297 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698