Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Issue 861373002: Refactor navigator.connect code to make it more flexible. (Closed)

Created:
5 years, 11 months ago by Marijn Kruisselbrink
Modified:
5 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor navigator.connect code to make it more flexible. This separates out all the service worker specific code from the generic connection handling. As well as exposing some API in content/public so code outside of content/ can handle connections. This is the first step in making it possible to have chrome extensions, or other code outside of content/ be the endpoint of a connection. This doesn't change any functionality, it just moves code around. BUG=426458 Committed: https://crrev.com/59114f60cc27b7ceefbb2d85a288b0dd1134df10 Cr-Commit-Position: refs/heads/master@{#313185}

Patch Set 1 #

Patch Set 2 : lower similarity threshold #

Total comments: 13

Patch Set 3 : address comments #

Patch Set 4 : rebase, and simplify a bit #

Total comments: 2

Patch Set 5 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -587 lines) Patch
D content/browser/navigator_connect/navigator_connect_context.h View 1 2 3 1 chunk +0 lines, -66 lines 0 comments Download
D content/browser/navigator_connect/navigator_connect_context.cc View 1 chunk +0 lines, -91 lines 0 comments Download
A + content/browser/navigator_connect/navigator_connect_context_impl.h View 1 2 3 1 chunk +30 lines, -42 lines 0 comments Download
A + content/browser/navigator_connect/navigator_connect_context_impl.cc View 1 2 3 1 chunk +39 lines, -69 lines 0 comments Download
M content/browser/navigator_connect/navigator_connect_dispatcher_host.h View 1 2 3 chunks +6 lines, -23 lines 0 comments Download
M content/browser/navigator_connect/navigator_connect_dispatcher_host.cc View 1 2 2 chunks +9 lines, -55 lines 0 comments Download
A + content/browser/navigator_connect/navigator_connect_service_worker_service_factory.h View 1 2 3 4 1 chunk +29 lines, -40 lines 0 comments Download
A + content/browser/navigator_connect/navigator_connect_service_worker_service_factory.cc View 1 2 3 2 chunks +143 lines, -40 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 3 chunks +1 line, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 4 chunks +9 lines, -5 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/child/navigator_connect/navigator_connect_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/navigator_connect_messages.h View 2 chunks +3 lines, -3 lines 0 comments Download
D content/common/navigator_connect_types.h View 1 chunk +0 lines, -29 lines 0 comments Download
D content/common/navigator_connect_types.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
A + content/public/browser/navigator_connect_context.h View 1 2 3 1 chunk +20 lines, -31 lines 0 comments Download
A + content/public/browser/navigator_connect_service_factory.h View 1 2 3 1 chunk +31 lines, -26 lines 0 comments Download
A + content/public/common/navigator_connect_client.h View 1 1 chunk +16 lines, -12 lines 0 comments Download
A + content/public/common/navigator_connect_client.cc View 1 1 chunk +6 lines, -8 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
Marijn Kruisselbrink
This patch turned out way larger than I hoped/expected... At least all it does is ...
5 years, 11 months ago (2015-01-23 19:33:09 UTC) #8
scheib
lgtm https://codereview.chromium.org/861373002/diff/140001/content/browser/navigator_connect/navigator_connect_context_impl.cc File content/browser/navigator_connect/navigator_connect_context_impl.cc (right): https://codereview.chromium.org/861373002/diff/140001/content/browser/navigator_connect/navigator_connect_context_impl.cc#newcode31 content/browser/navigator_connect/navigator_connect_context_impl.cc:31: // priority. take priority as per comment at ...
5 years, 11 months ago (2015-01-23 22:03:58 UTC) #9
Marijn Kruisselbrink
https://codereview.chromium.org/861373002/diff/140001/content/browser/navigator_connect/navigator_connect_context_impl.cc File content/browser/navigator_connect/navigator_connect_context_impl.cc (right): https://codereview.chromium.org/861373002/diff/140001/content/browser/navigator_connect/navigator_connect_context_impl.cc#newcode31 content/browser/navigator_connect/navigator_connect_context_impl.cc:31: // priority. On 2015/01/23 22:03:58, scheib wrote: > take ...
5 years, 11 months ago (2015-01-26 21:34:27 UTC) #10
Marijn Kruisselbrink
+avi for content/ OWNERS review
5 years, 11 months ago (2015-01-26 21:36:38 UTC) #12
Avi (use Gerrit)
lgtm https://codereview.chromium.org/861373002/diff/180001/content/browser/navigator_connect/navigator_connect_service_worker_service_factory.h File content/browser/navigator_connect/navigator_connect_service_worker_service_factory.h (right): https://codereview.chromium.org/861373002/diff/180001/content/browser/navigator_connect/navigator_connect_service_worker_service_factory.h#newcode6 content/browser/navigator_connect/navigator_connect_service_worker_service_factory.h:6: #define CONTENT_BROWSER_NAVIGAOR_CONNECT_NAVIGATOR_CONNECT_SERVICE_WORKER_SERVICE_FACTORY_H_ Fix typo: NAVIGATOR
5 years, 11 months ago (2015-01-27 00:03:36 UTC) #13
Marijn Kruisselbrink
+tsepez for IPC OWNERS review (the only IPC related change is renaming of a struct) ...
5 years, 11 months ago (2015-01-27 00:09:21 UTC) #15
Tom Sepez
RS LGTM on renaming struct.
5 years, 11 months ago (2015-01-27 01:00:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/861373002/200001
5 years, 11 months ago (2015-01-27 01:04:32 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:200001)
5 years, 11 months ago (2015-01-27 01:14:38 UTC) #19
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 01:15:40 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/59114f60cc27b7ceefbb2d85a288b0dd1134df10
Cr-Commit-Position: refs/heads/master@{#313185}

Powered by Google App Engine
This is Rietveld 408576698