|
Implement ServiceWorkerVersion::SendMessage()
As a preparation to implement DispatchInstallEvent(), this implements
following two methods:
- SendMessage()
- SendMessageAndRegisterCallback()
Unlike my previous patches, this supports:
- Sending messages without explicitly starting the worker
- Sending multiple messages concurrently
- Receiving a response for each message
Now each message can be sent with a unique 'request_id', which can be
used to send back a response to a particular message.
BUG= 313530
TEST=ServiceWorkerVersionTest.\*
R=alecflett@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248889
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+358 lines, -55 lines) |
Patch |
 |
M |
content/browser/service_worker/embedded_worker_instance.h
|
View
|
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_registry.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
|
4 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_test_utils.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.h
|
View
|
|
5 chunks |
+29 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
1
2
|
5 chunks |
+98 lines, -7 lines |
1 comment
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version_unittest.cc
|
View
|
1
2
|
4 chunks |
+167 lines, -25 lines |
0 comments
|
Download
|
 |
M |
content/common/service_worker/embedded_worker_messages.h
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_script_context.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_script_context.cc
|
View
|
1
2
|
1 chunk |
+9 lines, -3 lines |
1 comment
|
Download
|
Total messages: 11 (0 generated)
|