diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-23 00:25:04 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-23 00:25:04 +0000 |
commit | cb5b58c021e7fbcf3f377697870401cdd159ff6d (patch) | |
tree | 48e4845d5c8f984765a869f085eefd1d2fc5d2ed /chrome/renderer/webworker_base.cc | |
parent | 4225cbbd34cb72a87dc24be6e87537ba8c1b8505 (diff) | |
download | chromium_src-cb5b58c021e7fbcf3f377697870401cdd159ff6d.zip chromium_src-cb5b58c021e7fbcf3f377697870401cdd159ff6d.tar.gz chromium_src-cb5b58c021e7fbcf3f377697870401cdd159ff6d.tar.bz2 |
Revert 36888 - 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
Review URL: http://codereview.chromium.org/509016
TBR=atwilson@chromium.org
Review URL: http://codereview.chromium.org/549138
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36929 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webworker_base.cc')
-rw-r--r-- | chrome/renderer/webworker_base.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/renderer/webworker_base.cc b/chrome/renderer/webworker_base.cc index e78ef64..e32026c 100644 --- a/chrome/renderer/webworker_base.cc +++ b/chrome/renderer/webworker_base.cc @@ -19,13 +19,11 @@ using WebKit::WebWorkerClient; WebWorkerBase::WebWorkerBase( ChildThread* child_thread, - unsigned long long document_id, int route_id, int render_view_route_id) : route_id_(route_id), render_view_route_id_(render_view_route_id), - child_thread_(child_thread), - document_id_(document_id) { + child_thread_(child_thread) { if (route_id_ != MSG_ROUTING_NONE) child_thread_->AddRoute(route_id_, this); } @@ -56,14 +54,8 @@ void WebWorkerBase::CreateWorkerContext(const GURL& script_url, const string16& user_agent, const string16& source_code) { DCHECK(route_id_ == MSG_ROUTING_NONE); - ViewHostMsg_CreateWorker_Params params; - params.url = script_url; - params.is_shared = is_shared; - params.name = name; - params.document_id = document_id_; - params.render_view_route_id = render_view_route_id_; IPC::Message* create_message = new ViewHostMsg_CreateWorker( - params, &route_id_); + script_url, is_shared, name, render_view_route_id_, &route_id_); child_thread_->Send(create_message); if (route_id_ == MSG_ROUTING_NONE) return; |