|
Adding slightly clearer separation between SW and EmbeddedWorker (still incomplete)
I'm still a bit unsure about bringing separation here is a good thing,
but this patch adds slightly clearer separation between them.
* EmbeddedWorkerInstance now has generic SendMessage() and
OnMessageReceived() observer method (instead of SendFetchRequest etc)
* ServiceWorker's script context messages are sent and dispatched from/to
ServiceWorkerVersion to/from ServiceWorkerScriptContext via EW layer.
* EW/SW separation in blink and dispatcher_host is not made yet (and no plan to add it for now)
BUG= 313530
TBR=avi
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246276
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+217 lines, -33 lines) |
Patch |
 |
M |
content/browser/service_worker/embedded_worker_instance.h
|
View
|
|
4 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.cc
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.h
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/embedded_worker_messages.h
|
View
|
|
4 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_messages.h
|
View
|
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_renderer.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.h
|
View
|
1
|
4 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.cc
|
View
|
|
5 chunks |
+20 lines, -11 lines |
0 comments
|
Download
|
 |
A |
content/renderer/service_worker/service_worker_script_context.h
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/renderer/service_worker/service_worker_script_context.cc
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|