|
Store the service worker script and its imports on first load... kinda
The resource data is put into an in-memory instance of a net::DiskCache for now. That cache will be used for (some) subsequent starts of the worker in the current browsing session, but will not be used across browser restarts. The next step is to have the registration job store the resource ids with the registration data on disk and to also put the resource data to disk.
BUG= 364318
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271253
Total comments: 2
Total comments: 9
Total comments: 8
Total comments: 24
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+514 lines, -79 lines) |
Patch |
 |
M |
content/browser/service_worker/service_worker_context_request_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_database.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_disk_cache.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_read_from_cache_job.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_register_job.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_request_handler.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_script_cache_map.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+11 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_script_cache_map.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+22 lines, -31 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_storage.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
content/browser/service_worker/service_worker_write_to_cache_job.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+117 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/service_worker/service_worker_write_to_cache_job.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+320 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|