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

Unified Diff: chrome/renderer/renderer_glue.cc

Issue 126070: Make XHR work in Workers. Creates a 'shadow page' in a worker process to prox... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/common/child_thread.h ('k') | webkit/glue/webworker_impl.h » ('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 18410)
+++ chrome/renderer/renderer_glue.cc (working copy)
@@ -225,7 +225,7 @@
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 @@
// 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();
}
« no previous file with comments | « chrome/common/child_thread.h ('k') | webkit/glue/webworker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698