|
Adds EmbeddedWorkerSettings to EmbeddedWorkerMsg_StartWorker_Params.
It contains v8 cache options and the data saver pref value. Whether
or not Data Saver is enabled is provided by the
ChromeContentBrowserClient. This value is read by
ServiceWorkerProcessManager::AllocateWorkerProcess and is propagated
to WebEmbeddedWorkerImpl::prepareShadowPageForLoader(). This is a
near term fix; changes to the data saver state do not update the
embedded worker once created.
BUG= 587242
Committed: https://crrev.com/e8a146fb2900a92700479df4672189b7501b8918
Cr-Commit-Position: refs/heads/master@{#380283}
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+240 lines, -16 lines) |
Patch |
|
M |
chrome/browser/chrome_content_browser_client.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client_unittest.cc
|
View
|
1
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
1
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_browsertest.cc
|
View
|
1
2
3
|
4 chunks |
+147 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_process_manager.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_process_manager.cc
|
View
|
1
|
8 chunks |
+18 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_process_manager_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/common/service_worker/embedded_worker_messages.h
|
View
|
1
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
A |
content/common/service_worker/embedded_worker_settings.h
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_common.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/content_browser_client.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/content_browser_client.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/embedded_worker_dispatcher.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/add_save_data_to_title.js
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/add_save_data_to_title.js.mock-http-headers
|
View
|
1
2
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/fetch_event_pass_through.js
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/fetch_event_pass_through.js.mock-http-headers
|
View
|
1
2
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/fetch_in_install.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
content/test/data/service_worker/fetch_in_install.js.mock-http-headers
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 24 (12 generated)
|