Save running SW instance info, including its SiteInstance, into the ProcessManager.
commit3d4f8b23ccf8410ebc2cb92196583d8e5e6458e6
authorjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 11:29:16 +0000 (23 11:29 +0000)
committerjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 11:29:16 +0000 (23 11:29 +0000)
tree908d7c4f9d827492c07045c8d4266b8c7d2a8cd5
parentd4d2154673dd15562553258ed4f3b00e88365bf1
Save running SW instance info, including its SiteInstance, into the ProcessManager.

We can use this map to drop all the process references on shutdown, in order to
fix http://crbug.com/368570.

This starts to fix an assumption in the content layer that SiteInstances outlive
their RPHs so that process permissions can be controlled through the
SiteInstance instead of by process id. However, there's still work to do before
that's completely fixed.

This reverts https://codereview.chromium.org/296053013/ and avoids the incorrect
down-cast that caused https://codereview.chromium.org/292903002 to break the
Asan bot.

BUG=368570

Review URL: https://codereview.chromium.org/294073009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272490 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/embedded_worker_instance.cc
content/browser/service_worker/embedded_worker_instance.h
content/browser/service_worker/embedded_worker_instance_unittest.cc
content/browser/service_worker/embedded_worker_test_helper.cc
content/browser/service_worker/service_worker_browsertest.cc
content/browser/service_worker/service_worker_context_unittest.cc
content/browser/service_worker/service_worker_process_manager.cc
content/browser/service_worker/service_worker_process_manager.h