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

Unified Diff: webkit/glue/webworker_impl.h

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/renderer/renderer_glue.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webworker_impl.h
===================================================================
--- webkit/glue/webworker_impl.h (revision 18410)
+++ webkit/glue/webworker_impl.h (working copy)
@@ -19,6 +19,8 @@
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 @@
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);
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698