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

Unified Diff: content/browser/plugin_process_host_mac.cc

Issue 9150017: Add a Content API around BrowserChildProcessHost, similar to what was done with ChildProcessHost.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix?! Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_process_host_mac.cc
===================================================================
--- content/browser/plugin_process_host_mac.cc (revision 118420)
+++ content/browser/plugin_process_host_mac.cc (working copy)
@@ -11,9 +11,12 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/mac/mac_util.h"
+#include "base/process_util.h"
+#include "content/browser/browser_child_process_host.h"
#include "content/browser/plugin_process_host.h"
#include "content/common/plugin_messages.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/child_process_data.h"
#include "ui/gfx/rect.h"
using content::BrowserThread;
@@ -75,7 +78,8 @@
if (plugin_fullscreen_windows_set_.find(window_id) !=
plugin_fullscreen_windows_set_.end()) {
plugin_fullscreen_windows_set_.erase(window_id);
- pid_t plugin_pid = browser_needs_activation ? -1 : data().handle;
+ pid_t plugin_pid =
+ browser_needs_activation ? -1 : process_->GetData().handle;
browser_needs_activation = false;
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
base::Bind(ReleasePluginFullScreen, plugin_pid));
@@ -96,7 +100,7 @@
if (!plugin_modal_windows_set_.empty()) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(base::mac::ActivateProcess, data().handle));
+ base::Bind(base::mac::ActivateProcess, process_->GetData().handle));
}
}
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698