From 0791d3a25978f15adfe3ddc073850f7ce2bd158e Mon Sep 17 00:00:00 2001 From: "atwilson@chromium.org" Date: Thu, 28 Jan 2010 01:28:49 +0000 Subject: Refactored code to allow associating workers with multiple renderers. SharedWorkers now gracefully handle http auth requests after their initial window has closed. BUG=27660 TEST=WorkerHttpAuth,SharedWorkerHttpAuth uitests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36888 Reverted and reopened due to valgrind failures. Review URL: http://codereview.chromium.org/509016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37365 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/webworker_base.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/renderer/webworker_base.h') diff --git a/chrome/renderer/webworker_base.h b/chrome/renderer/webworker_base.h index fe5becc..6c031c8 100644 --- a/chrome/renderer/webworker_base.h +++ b/chrome/renderer/webworker_base.h @@ -20,6 +20,7 @@ class GURL; class WebWorkerBase : public IPC::Channel::Listener { public: WebWorkerBase(ChildThread* child_thread, + unsigned long long document_id, int route_id, int render_view_route_id); @@ -61,6 +62,10 @@ class WebWorkerBase : public IPC::Channel::Listener { ChildThread* child_thread_; private: + // ID of our parent document (used to shutdown workers when the parent + // document is detached). + unsigned long long document_id_; + // Stores messages that were sent before the StartWorkerContext message. std::vector queued_messages_; }; -- cgit v1.1