|
Add IPC stubs between browser and ServiceWorker's worker context in the child process
- Add ServiceWorkerHostMsg_WorkerStarted and ServiceWorkerHostMsg_WorkerStopped
that are sent from embedded worker to the browser process
- Add ServiceWorkerContextMsg_FetchEvent for messages from embedded worker
to the browser process
FetchEvent/FetchRequest code is a bit rough as it's meant to be
a placeholder. I can remove the part from this CL if it doesn't
look reay yet.
The new code uses new IPC class (ServiceWorkerContextMsg) for dispatching
messages specifically sent to the embedded workers's worker context,
which may feel a bit noisy. (Alternative suggestions welcome)
BUG= 313530
R=alecflett@chromium.org, jochen@chromium.org, tsepez@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243081
Total comments: 10
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+312 lines, -230 lines) |
Patch |
 |
M |
content/browser/service_worker/embedded_worker_instance.h
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
1
|
3 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.h
|
View
|
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.cc
|
View
|
1
|
3 chunks |
+42 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
1
2
3
|
3 chunks |
+19 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker_messages.h
|
View
|
1
2
|
2 chunks |
+32 lines, -3 lines |
0 comments
|
Download
|
 |
A |
content/common/service_worker_types.h
|
View
|
1
2
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/common/service_worker_types.cc
|
View
|
1
2
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_common.gypi
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/content_renderer.gypi
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
|
4 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
A + |
content/renderer/service_worker/embedded_worker_context_client.h
|
View
|
1
|
3 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
content/renderer/service_worker/embedded_worker_context_client.cc
|
View
|
1
|
6 chunks |
+29 lines, -16 lines |
0 comments
|
Download
|
 |
A + |
content/renderer/service_worker/embedded_worker_context_message_filter.h
|
View
|
1
|
2 chunks |
+7 lines, -16 lines |
0 comments
|
Download
|
 |
A |
content/renderer/service_worker/embedded_worker_context_message_filter.cc
|
View
|
1
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_dispatcher.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_dispatcher.cc
|
View
|
1
|
5 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_context_client.h
|
View
|
1
|
1 chunk |
+0 lines, -63 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_context_client.cc
|
View
|
1
|
1 chunk |
+0 lines, -98 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_message_start.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|