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

Issue 2940883007: Move lazy event dispatching code out of EventRouter. (Closed)

Created:
3 years, 6 months ago by lazyboy
Modified:
3 years, 6 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move lazy event dispatching code out of EventRouter. Separate out lazy background page logic from EventRouter to LazyEventDispatcher. This will facilitate introducing service worker (another "lazy context") lazy events to extensions. Also introduce LazyContextId to identify a lazy context. This is currently used only for identifying event page context, but in future will also identify extension service worker context. BUG=721147, 723754 Review-Url: https://codereview.chromium.org/2940883007 Cr-Commit-Position: refs/heads/master@{#479833} Committed: https://chromium.googlesource.com/chromium/src/+/e464732fb0179fa3514239419c804547a0f56b8d

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Patch Set 3 : compile #

Total comments: 2

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -112 lines) Patch
M extensions/browser/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/browser/event_router.h View 1 4 chunks +9 lines, -8 lines 0 comments Download
M extensions/browser/event_router.cc View 1 2 6 chunks +42 lines, -104 lines 0 comments Download
A extensions/browser/events/lazy_event_dispatcher.h View 1 1 chunk +88 lines, -0 lines 0 comments Download
A extensions/browser/events/lazy_event_dispatcher.cc View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download
A extensions/browser/lazy_context_id.h View 1 chunk +51 lines, -0 lines 0 comments Download
A extensions/browser/lazy_context_id.cc View 1 chunk +20 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (21 generated)
lazyboy
Hi Devlin, I've extracted some event_router code from my service worker draft CL https://codereview.chromium.org/2924213002/ here, ...
3 years, 6 months ago (2017-06-15 01:11:25 UTC) #2
Devlin
Nice! https://codereview.chromium.org/2940883007/diff/1/extensions/browser/event_router.cc File extensions/browser/event_router.cc (right): https://codereview.chromium.org/2940883007/diff/1/extensions/browser/event_router.cc#newcode149 extensions/browser/event_router.cc:149: bool cross_incognito = event.restrict_to_browser_context && nit: since we're ...
3 years, 6 months ago (2017-06-15 01:37:27 UTC) #5
lazyboy
https://codereview.chromium.org/2940883007/diff/1/extensions/browser/event_router.cc File extensions/browser/event_router.cc (right): https://codereview.chromium.org/2940883007/diff/1/extensions/browser/event_router.cc#newcode149 extensions/browser/event_router.cc:149: bool cross_incognito = event.restrict_to_browser_context && On 2017/06/15 01:37:26, Devlin ...
3 years, 6 months ago (2017-06-15 04:39:23 UTC) #8
Devlin
lgtm https://codereview.chromium.org/2940883007/diff/40001/extensions/browser/events/lazy_event_dispatcher.cc File extensions/browser/events/lazy_event_dispatcher.cc (right): https://codereview.chromium.org/2940883007/diff/40001/extensions/browser/events/lazy_event_dispatcher.cc#newcode56 extensions/browser/events/lazy_event_dispatcher.cc:56: // extension service worker) to handle the event. ...
3 years, 6 months ago (2017-06-15 15:09:50 UTC) #17
lazyboy
https://codereview.chromium.org/2940883007/diff/40001/extensions/browser/events/lazy_event_dispatcher.cc File extensions/browser/events/lazy_event_dispatcher.cc (right): https://codereview.chromium.org/2940883007/diff/40001/extensions/browser/events/lazy_event_dispatcher.cc#newcode56 extensions/browser/events/lazy_event_dispatcher.cc:56: // extension service worker) to handle the event. The ...
3 years, 6 months ago (2017-06-15 17:33:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940883007/60001
3 years, 6 months ago (2017-06-15 21:12:23 UTC) #25
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 21:17:43 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e464732fb0179fa3514239419c80...

Powered by Google App Engine
This is Rietveld 408576698