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

Issue 10388135: Add common code for extensions event filtering. (Closed)

Created:
8 years, 7 months ago by koz (OOO until 15th September)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, mpcomplete, not at google - send to devlin, benwells
Visibility:
Public.

Description

Add common code for extensions event filtering. FilteredEventRouter will be used in the browser and the renderer to match events to interested parties. In the browser it will be used to send events only to renderers that are interested in them, and in the renderer it will be used to send events to the correct JS listeners. BUG=121479 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137829

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 51

Patch Set 3 : respond to comments #

Total comments: 21

Patch Set 4 : respond to comments #

Total comments: 20

Patch Set 5 : respond to comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+637 lines, -0 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/event_filter.h View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_filter.cc View 1 2 3 4 1 chunk +148 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_filter_unittest.cc View 1 2 3 4 1 chunk +231 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_filtering_info.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_filtering_info.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_matcher.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/common/extensions/event_matcher.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
koz (OOO until 15th September)
FilteredEventRouter is intended to be used analogously on the browser and the renderer to route ...
8 years, 7 months ago (2012-05-15 02:09:51 UTC) #1
koz (OOO until 15th September)
battre: am I using URLMatcher correctly? mpcomplete: does this align with your vision of general ...
8 years, 7 months ago (2012-05-15 03:40:15 UTC) #2
battre
https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.h File chrome/common/extensions/event_filtering_info.h (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.h#newcode30 chrome/common/extensions/event_filtering_info.h:30: bool has_url_; optional: could you use GURL::is_empty()? https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.h#newcode31 chrome/common/extensions/event_filtering_info.h:31: ...
8 years, 7 months ago (2012-05-15 13:12:28 UTC) #3
Matt Perry
https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.cc File chrome/common/extensions/event_filtering_info.cc (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.cc#newcode9 chrome/common/extensions/event_filtering_info.cc:9: EventFilteringInfo::EventFilteringInfo() { need to init has_url_ https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.h File chrome/common/extensions/event_filtering_info.h ...
8 years, 7 months ago (2012-05-15 20:42:59 UTC) #4
koz (OOO until 15th September)
Thanks, guys. https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.cc File chrome/common/extensions/event_filtering_info.cc (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/event_filtering_info.cc#newcode9 chrome/common/extensions/event_filtering_info.cc:9: EventFilteringInfo::EventFilteringInfo() { On 2012/05/15 20:42:59, Matt Perry ...
8 years, 7 months ago (2012-05-16 00:13:59 UTC) #5
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h File chrome/common/extensions/filtered_event_router.h (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h#newcode22 chrome/common/extensions/filtered_event_router.h:22: class FilteredEventRouter { On 2012/05/16 00:14:00, koz wrote: ...
8 years, 7 months ago (2012-05-16 00:37:32 UTC) #6
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h File chrome/common/extensions/filtered_event_router.h (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h#newcode22 chrome/common/extensions/filtered_event_router.h:22: class FilteredEventRouter { On 2012/05/16 00:37:32, Matt Perry wrote: ...
8 years, 7 months ago (2012-05-16 01:01:21 UTC) #7
Matt Perry
https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h File chrome/common/extensions/filtered_event_router.h (right): https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h#newcode22 chrome/common/extensions/filtered_event_router.h:22: class FilteredEventRouter { On 2012/05/16 01:01:21, koz wrote: > ...
8 years, 7 months ago (2012-05-16 01:17:06 UTC) #8
koz (OOO until 15th September)
On 2012/05/16 01:17:06, Matt Perry wrote: > https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h > File chrome/common/extensions/filtered_event_router.h (right): > > https://chromiumcodereview.appspot.com/10388135/diff/2001/chrome/common/extensions/filtered_event_router.h#newcode22 ...
8 years, 7 months ago (2012-05-16 01:43:00 UTC) #9
battre
https://chromiumcodereview.appspot.com/10388135/diff/7003/chrome/common/extensions/event_matcher.h File chrome/common/extensions/event_matcher.h (right): https://chromiumcodereview.appspot.com/10388135/diff/7003/chrome/common/extensions/event_matcher.h#newcode20 chrome/common/extensions/event_matcher.h:20: class EventMatcher { On 2012/05/16 00:37:32, Matt Perry wrote: ...
8 years, 7 months ago (2012-05-16 13:35:11 UTC) #10
koz (OOO until 15th September)
Thanks for the thorough review! https://chromiumcodereview.appspot.com/10388135/diff/7003/chrome/common/extensions/event_matcher.h File chrome/common/extensions/event_matcher.h (right): https://chromiumcodereview.appspot.com/10388135/diff/7003/chrome/common/extensions/event_matcher.h#newcode20 chrome/common/extensions/event_matcher.h:20: class EventMatcher { On ...
8 years, 7 months ago (2012-05-17 05:08:41 UTC) #11
battre
LGTM http://codereview.chromium.org/10388135/diff/12001/chrome/common/extensions/event_filter.cc File chrome/common/extensions/event_filter.cc (right): http://codereview.chromium.org/10388135/diff/12001/chrome/common/extensions/event_filter.cc#newcode24 chrome/common/extensions/event_filter.cc:24: url_matcher_->RemoveConditionSets(condition_set_ids_); This architecture makes the destruction of the ...
8 years, 7 months ago (2012-05-17 08:50:51 UTC) #12
koz (OOO until 15th September)
Thanks, Dominic! http://codereview.chromium.org/10388135/diff/12001/chrome/common/extensions/event_filter.cc File chrome/common/extensions/event_filter.cc (right): http://codereview.chromium.org/10388135/diff/12001/chrome/common/extensions/event_filter.cc#newcode24 chrome/common/extensions/event_filter.cc:24: url_matcher_->RemoveConditionSets(condition_set_ids_); On 2012/05/17 08:50:51, battre wrote: > ...
8 years, 7 months ago (2012-05-18 01:13:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10388135/15001
8 years, 7 months ago (2012-05-18 01:34:38 UTC) #14
commit-bot: I haz the power
Try job failure for 10388135-15001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-18 02:45:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10388135/15001
8 years, 7 months ago (2012-05-18 03:41:03 UTC) #16
commit-bot: I haz the power
8 years, 7 months ago (2012-05-18 05:29:41 UTC) #17
Change committed as 137829

Powered by Google App Engine
This is Rietveld 408576698