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

Unified Diff: chrome/renderer/renderer_glue.cc

Issue 14142: Start using the proxy resolve IPC for plugins.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/plugin/plugin_thread.cc ('k') | chrome/test/unit/unit_tests.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_glue.cc
===================================================================
--- chrome/renderer/renderer_glue.cc (revision 8931)
+++ chrome/renderer/renderer_glue.cc (working copy)
@@ -23,6 +23,7 @@
#include "chrome/renderer/visitedlink_slave.h"
#include "googleurl/src/url_util.h"
#include "net/base/mime_util.h"
+#include "net/base/net_errors.h"
#include "webkit/glue/scoped_clipboard_writer_glue.h"
#include "webkit/glue/webframe.h"
#include "webkit/glue/webkit_glue.h"
@@ -309,6 +310,15 @@
return g_render_thread->visited_link_slave()->IsVisited(link_hash);
}
+int ResolveProxyFromRenderThread(const GURL& url, std::string* proxy_result) {
+ // Send a synchronous IPC from renderer process to the browser process to
+ // resolve the proxy. (includes --single-process case).
+ int net_error;
+ bool ipc_ok = g_render_thread->Send(
+ new ViewHostMsg_ResolveProxy(url, &net_error, proxy_result));
+ return ipc_ok ? net_error : net::ERR_UNEXPECTED;
+}
+
#ifndef USING_SIMPLE_RESOURCE_LOADER_BRIDGE
// Each RenderView has a ResourceDispatcher. In unit tests, this function may
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/test/unit/unit_tests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698