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

Issue 798923003: Make chrome/renderer/content_settings_observer.cc depend on //components/contents_settings for IPC (Closed)

Created:
6 years ago by vabr (Chromium)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, markusheintz_, stuartmorgan+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make chrome/renderer/content_settings_observer.cc depend on //components/contents_settings for IPC In preparation for moving chrome/renderer/content_settings_observer.cc into //components/contents_settings, this CL moves all IPC messages used in that file to a separate IPC declaration header in //components/contents_settings. The main parts of the change: * separating messages from chrome/common/render_messages.h to newly created components/content_settings/content/common/content_settings_messages.h * adding the support files in components/content_settings/content/common/ * extending the filter in chrome/browser/renderer_host/chrome_render_message_filter.cc to catch content settings IPC * and, of course, removing #include "chrome/common/render_messages.h" from content_settings_observer.cc The rest is mostly adding #includes and mechanical changes. BUG=384874, 387075 Committed: https://crrev.com/fc325fa0fbd5ad4e45791376c1a85e8781a89d27 Cr-Commit-Position: refs/heads/master@{#324644}

Patch Set 1 : #

Patch Set 2 : Just rebase #

Patch Set 3 : Restrict deps #

Patch Set 4 : ipc_fuzzer gets the new header #

Patch Set 5 : Fix fuzzer compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -73 lines) Patch
M chrome/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/infobars/infobar_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/infobars/insecure_content_infobar_delegate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_param_traits_macros.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/render_messages.h View 1 8 chunks +0 lines, -72 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/content_settings_observer_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/worker_content_settings_client_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings.gypi View 1 chunk +21 lines, -0 lines 0 comments Download
A components/content_settings/DEPS View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A components/content_settings/content/DEPS View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A components/content_settings/content/common/BUILD.gn View 1 chunk +19 lines, -0 lines 0 comments Download
A + components/content_settings/content/common/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/content_settings/content/common/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/content_settings/content/common/content_settings_message_generator.h View 1 chunk +7 lines, -0 lines 0 comments Download
A components/content_settings/content/common/content_settings_message_generator.cc View 1 chunk +33 lines, -0 lines 0 comments Download
A components/content_settings/content/common/content_settings_messages.h View 1 chunk +94 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/ipc_fuzzer/message_lib/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/ipc_fuzzer/message_lib/all_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/ipc_fuzzer/message_lib/message_lib.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
vabr (Chromium)
Hi Mike and Jochen! Mike: please do an OWNERS review for the IPC-headers changes. The ...
5 years, 8 months ago (2015-04-08 16:04:12 UTC) #7
Mike West
Moving the IPC messages to the new component LGTM.
5 years, 8 months ago (2015-04-09 05:03:20 UTC) #8
jochen (gone - plz use gerrit)
i'm surprised you don't need to include the header from chrome/common/all_messages.h it would also be ...
5 years, 8 months ago (2015-04-09 14:43:50 UTC) #9
vabr (Chromium)
Hi Tom, Do changes in tools/ipc_fuzzer/message_lib/* look good to you? The new IPC messages were ...
5 years, 8 months ago (2015-04-09 17:23:55 UTC) #11
Tom Sepez
On 2015/04/09 17:23:55, vabr (Chromium) wrote: > Hi Tom, > Do changes in tools/ipc_fuzzer/message_lib/* look ...
5 years, 8 months ago (2015-04-09 18:02:41 UTC) #12
Tom Sepez
> Please check that this builds with: > GYP_DEFINES='enable_ipc_fuzzer=1'; build/gyp_chromium > ninja -C out/Debug ipc_fuzzer_all ...
5 years, 8 months ago (2015-04-09 18:06:06 UTC) #13
Tom Sepez
On 2015/04/09 18:06:06, Tom Sepez wrote: > > Please check that this builds with: > ...
5 years, 8 months ago (2015-04-09 19:09:00 UTC) #14
vabr (Chromium)
Thanks, Tom, for the compilation instructions. It failed, and I fixed that in patch set ...
5 years, 8 months ago (2015-04-10 07:28:26 UTC) #15
vabr (Chromium)
Tom, I just realised I also need your approval for ipc/: Could you please also ...
5 years, 8 months ago (2015-04-10 07:30:52 UTC) #16
jochen (gone - plz use gerrit)
lgtm
5 years, 8 months ago (2015-04-10 12:19:45 UTC) #17
Tom Sepez
LGTM++
5 years, 8 months ago (2015-04-10 16:07:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/798923003/170001
5 years, 8 months ago (2015-04-10 16:20:13 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:170001)
5 years, 8 months ago (2015-04-10 16:25:10 UTC) #22
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 16:26:00 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fc325fa0fbd5ad4e45791376c1a85e8781a89d27
Cr-Commit-Position: refs/heads/master@{#324644}

Powered by Google App Engine
This is Rietveld 408576698