|
Teach EmbeddedWorkerInstance to create a process when it needs one.
This saves the BrowserContext into the ServiceWorkerContextWrapper, and uses it when no process is available. We always choose a renderer process on the UI thread and take a reference to it before asking the renderer to start the SW thread. This also fixes a race where a process might die before we have a chance to use it.
We'll probably need to thread more process IDs through in cases where there might not be a ProviderHost, but that can wait for a subsequent CL.
BUG= 359811, 362060, 362058
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266825
Total comments: 18
Total comments: 22
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+774 lines, -266 lines) |
Patch |
 |
M |
content/browser/service_worker/embedded_worker_instance.h
|
View
|
1
2
3
|
5 chunks |
+19 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
1
2
3
4
|
3 chunks |
+51 lines, -31 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+63 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.h
|
View
|
1
2
3
|
5 chunks |
+21 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+67 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.h
|
View
|
1
|
4 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_core.h
|
View
|
1
2
3
4
|
5 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_core.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_unittest.cc
|
View
|
1
|
15 chunks |
+24 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_wrapper.h
|
View
|
1
2
3
|
5 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_context_wrapper.cc
|
View
|
1
2
3
|
5 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.h
|
View
|
1
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
1
|
3 chunks |
+24 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
|
View
|
1
|
5 chunks |
+10 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_handle_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_job_unittest.cc
|
View
|
1
|
3 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
A |
content/browser/service_worker/service_worker_process_manager.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+84 lines, -0 lines |
2 comments
|
Download
|
 |
A |
content/browser/service_worker/service_worker_process_manager.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+145 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_provider_host_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_register_job.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_register_job.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_registration_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_storage_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_url_request_job_unittest.cc
|
View
|
1
|
2 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+79 lines, -45 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/storage_partition_impl.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/service_worker_context.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_dispatcher.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|