|
ServiceWorker: Move worker candidate process knowledge to ServiceWorkerProcessManager.
Before this CL:
Candidate processes info is saved in EmbeddedWorkerInstance, when a new
worker instance is created for a same scope, the info will be absent for
the new worker. E.g., periodic update will spawn a new process every time.
After this CL:
Candidate processes info will be saved in ServiceWorkerProcessManager
key by registration scope. Then different versions with the same scope could
share this info.
BUG= 399982
TEST=content_unittests --gtest_filter=ServiceWorker*
Committed: https://crrev.com/3c4d6ceb7f29eaa4024bfe268e033a2ea296066b
Cr-Commit-Position: refs/heads/master@{#294113}
Total comments: 8
Total comments: 24
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+354 lines, -361 lines) |
Patch |
 |
M |
content/browser/service_worker/embedded_worker_instance.h
|
View
|
1
2
3
|
5 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+1 line, -41 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -45 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
1
2
3
|
4 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_core.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_core.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_unittest.cc
|
View
|
1
2
3
|
10 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_wrapper.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_handle_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_job_coordinator.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_job_coordinator.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_job_unittest.cc
|
View
|
1
2
3
4
|
25 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_process_manager.h
|
View
|
1
2
3
|
6 chunks |
+30 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_process_manager.cc
|
View
|
1
2
3
|
5 chunks |
+98 lines, -12 lines |
0 comments
|
Download
|
 |
A |
content/browser/service_worker/service_worker_process_manager_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_provider_host.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_provider_host.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+43 lines, -46 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_provider_host_unittest.cc
|
View
|
1
2
3
|
5 chunks |
+29 lines, -30 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_register_job.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_register_job.cc
|
View
|
1
2
3
4
6
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -17 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+2 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version_unittest.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -27 lines |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 32 (5 generated)
|