summaryrefslogtreecommitdiffstats
path: root/chrome/browser/worker_host
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 01:18:41 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 01:18:41 +0000
commit5f9a317bdd2cd3475687b228491972c1ec649343 (patch)
tree673530aa576b583f75e7babf72063ba9fa52a59a /chrome/browser/worker_host
parent68f856903c974c0f6ce6aa84542eccabbddb2d3f (diff)
downloadchromium_src-5f9a317bdd2cd3475687b228491972c1ec649343.zip
chromium_src-5f9a317bdd2cd3475687b228491972c1ec649343.tar.gz
chromium_src-5f9a317bdd2cd3475687b228491972c1ec649343.tar.bz2
plugins: use OnChannelError to detect when the channel goes away
Previously we used a special Watcher object to watch the process, but that is not portable to POSIX and this is simpler anyway. With this change, I now see ~PluginProcessHost() running when a plugin crashes. If you recall all the way back to http://codereview.chromium.org/16814 we did a similar thing to the renderer host. Review URL: http://codereview.chromium.org/155331 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/worker_host')
-rw-r--r--chrome/browser/worker_host/worker_process_host.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/worker_host/worker_process_host.cc b/chrome/browser/worker_host/worker_process_host.cc
index 9672dd1..017ea86 100644
--- a/chrome/browser/worker_host/worker_process_host.cc
+++ b/chrome/browser/worker_host/worker_process_host.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/debug_util.h"
+#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/string_util.h"