summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/plugin_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/plugin/plugin_thread.cc')
-rw-r--r--chrome/plugin/plugin_thread.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index c6c6842..66e780a 100644
--- a/chrome/plugin/plugin_thread.cc
+++ b/chrome/plugin/plugin_thread.cc
@@ -20,10 +20,10 @@
#include "base/process_util.h"
#include "base/threading/thread_local.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/render_messages.h"
#include "chrome/plugin/npobject_util.h"
#include "chrome/renderer/render_thread.h"
#include "content/common/child_process.h"
+#include "content/common/child_process_messages.h"
#include "content/common/plugin_messages.h"
#include "ipc/ipc_channel_handle.h"
#include "net/base/net_errors.h"
@@ -193,21 +193,12 @@ bool IsDefaultPluginEnabled() {
return true;
}
-// Dispatch the resolve proxy resquest to the right code, depending on which
-// process the plugin is running in {renderer, browser, plugin}.
bool FindProxyForUrl(const GURL& url, std::string* proxy_list) {
int net_error;
std::string proxy_result;
- bool result;
- if (IsPluginProcess()) {
- result = PluginThread::current()->Send(
- new PluginProcessHostMsg_ResolveProxy(url, &net_error, &proxy_result));
- } else {
- result = RenderThread::current()->Send(
- new ViewHostMsg_ResolveProxy(url, &net_error, &proxy_result));
- }
-
+ bool result = ChildThread::current()->Send(
+ new ChildProcessHostMsg_ResolveProxy(url, &net_error, &proxy_result));
if (!result || net_error != net::OK)
return false;