summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authordimich@google.com <dimich@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 00:37:09 +0000
committerdimich@google.com <dimich@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 00:37:09 +0000
commitf2330fe08ed5e92b52c6c90d2230fe678e07eb17 (patch)
tree20a25568b86dfe7c59a925f8ef9b273e449532e6 /chrome/renderer/renderer_glue.cc
parent8b3833e7804b92c2a2fab6f91ba08367ab103bb0 (diff)
downloadchromium_src-f2330fe08ed5e92b52c6c90d2230fe678e07eb17.zip
chromium_src-f2330fe08ed5e92b52c6c90d2230fe678e07eb17.tar.gz
chromium_src-f2330fe08ed5e92b52c6c90d2230fe678e07eb17.tar.bz2
Make XHR work in Workers. Creates a 'shadow page' in a worker process to proxy the loading requests through.
BUG=4361 TEST=none Review URL: http://codereview.chromium.org/126070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r--chrome/renderer/renderer_glue.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index be7893d..5f31444 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -225,7 +225,7 @@ ResourceLoaderBridge* ResourceLoaderBridge::Create(
ResourceType::Type resource_type,
int app_cache_context_id,
int routing_id) {
- ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher();
+ ResourceDispatcher* dispatch = ChildThread::current()->resource_dispatcher();
return dispatch->CreateBridge(method, url, first_party_for_cookies, referrer,
frame_origin, main_frame_origin, headers,
load_flags, origin_pid, resource_type, 0,
@@ -236,7 +236,7 @@ void NotifyCacheStats() {
// Update the browser about our cache
// NOTE: Since this can be called from the plugin process, we might not have
// a RenderThread. Do nothing in that case.
- if (!IsPluginProcess())
+ if (RenderThread::current())
RenderThread::current()->InformHostOfCacheStatsLater();
}