summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webworker_impl.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 /webkit/glue/webworker_impl.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 'webkit/glue/webworker_impl.h')
-rw-r--r--webkit/glue/webworker_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webworker_impl.h b/webkit/glue/webworker_impl.h
index 8c87d48..db12c09 100644
--- a/webkit/glue/webworker_impl.h
+++ b/webkit/glue/webworker_impl.h
@@ -19,6 +19,8 @@ class Strng;
class WorkerThread;
};
+class WebView;
+
// This class is used by the worker process code to talk to the WebCore::Worker
// implementation. It can't use it directly since it uses WebKit types, so this
// class converts the data types. When the WebCore::Worker object wants to call
@@ -113,6 +115,11 @@ class WebWorkerImpl: public WebCore::WorkerObjectProxy,
WebWorkerImpl* this_ptr);
WebKit::WebWorkerClient* client_;
+
+ // 'shadow page' - created to proxy loading requests from the worker.
+ WTF::RefPtr<WebCore::ScriptExecutionContext> loading_document_;
+ WebView* web_view_;
+
WTF::RefPtr<WebCore::WorkerThread> worker_thread_;
DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl);