summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_thread.h
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/common/child_thread.h
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/common/child_thread.h')
-rw-r--r--chrome/common/child_thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h
index f612c35..cc4abaa 100644
--- a/chrome/common/child_thread.h
+++ b/chrome/common/child_thread.h
@@ -34,6 +34,9 @@ class ChildThread : public IPC::Channel::Listener,
return resource_dispatcher_.get();
}
+ // Returns the one child thread.
+ static ChildThread* current();
+
protected:
friend class ChildProcess;
@@ -52,9 +55,6 @@ class ChildThread : public IPC::Channel::Listener,
virtual void OnControlMessageReceived(const IPC::Message& msg) { }
- // Returns the one child thread.
- static ChildThread* current();
-
IPC::SyncChannel* channel() { return channel_.get(); }
// Thread implementation.