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

Issue 2940893002: [Extensions] Pass EventFilteringInfo directly in DispatchEvent message (Closed)

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

Description

[Extensions] Pass EventFilteringInfo directly in DispatchEvent message Instead of serializing the EventFilteringInfo as a base::Value and passing it to the renderer, and then deserialzing it again, just pass the struct directly. This should be more efficient and perhaps more secure (since it is more easily validated in the messages). BUG=732564 Review-Url: https://codereview.chromium.org/2940893002 Cr-Commit-Position: refs/heads/master@{#479775} Committed: https://chromium.googlesource.com/chromium/src/+/32f6a61d04a6d71f66853223f4e864ec424455c3

Patch Set 1 : . #

Total comments: 5

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -133 lines) Patch
M extensions/browser/event_router.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/event_filtering_info.h View 3 chunks +5 lines, -6 lines 0 comments Download
M extensions/common/event_filtering_info.cc View 1 chunk +0 lines, -74 lines 0 comments Download
M extensions/common/extension_messages.h View 3 chunks +10 lines, -1 line 0 comments Download
M extensions/renderer/api_event_listeners_unittest.cc View 4 chunks +8 lines, -15 lines 0 comments Download
M extensions/renderer/dispatcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M extensions/renderer/dispatcher.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M extensions/renderer/event_bindings.h View 2 chunks +5 lines, -6 lines 0 comments Download
M extensions/renderer/event_bindings.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M extensions/renderer/extension_bindings_system.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M extensions/renderer/js_extension_bindings_system.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/js_extension_bindings_system.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/native_extension_bindings_system.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/native_extension_bindings_system.cc View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (25 generated)
Devlin
lazyboy@, mind taking a look?
3 years, 6 months ago (2017-06-15 01:20:25 UTC) #18
Devlin
+Robert for extension_messages.h IPC review.
3 years, 6 months ago (2017-06-15 15:11:02 UTC) #20
lazyboy
https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/extension_bindings_system.h File extensions/renderer/extension_bindings_system.h (right): https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/extension_bindings_system.h#newcode15 extensions/renderer/extension_bindings_system.h:15: struct EventFilteringInfo; nit: struct after all class declarations. https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/native_extension_bindings_system.cc ...
3 years, 6 months ago (2017-06-15 17:12:23 UTC) #21
Robert Sesek
LGTM
3 years, 6 months ago (2017-06-15 17:54:25 UTC) #22
Devlin
https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/extension_bindings_system.h File extensions/renderer/extension_bindings_system.h (right): https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/extension_bindings_system.h#newcode15 extensions/renderer/extension_bindings_system.h:15: struct EventFilteringInfo; On 2017/06/15 17:12:23, lazyboy wrote: > nit: ...
3 years, 6 months ago (2017-06-15 18:01:07 UTC) #24
lazyboy
lgtm https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/native_extension_bindings_system.cc File extensions/renderer/native_extension_bindings_system.cc (right): https://codereview.chromium.org/2940893002/diff/60001/extensions/renderer/native_extension_bindings_system.cc#newcode490 extensions/renderer/native_extension_bindings_system.cc:490: filtering_info ? *filtering_info : EventFilteringInfo()); On 2017/06/15 18:01:06, ...
3 years, 6 months ago (2017-06-15 18:06:43 UTC) #26
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/2940893002/80001
3 years, 6 months ago (2017-06-15 18:14:36 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 19:15:15 UTC) #33
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/32f6a61d04a6d71f66853223f4e8...

Powered by Google App Engine
This is Rietveld 408576698