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

Issue 6840044: Size reduction: halve npchrome_frame.dll via code motion. (Closed)

Created:
9 years, 8 months ago by grt (UTC plus 2)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Moved ParamTraits specializations that depend on WebKit out of content/common/common_param_traits and into webkit_param_traits. Also pulled some specializations out of chrome/common/render_messages and into chrome/common/common_param_traits. This is done so that the MS toolchain can succeed in discarding more code at link time. This halves the size of npchrome_frame.dll in ordinary "Release" builds. I hope for a similar reduction in official builds. BUG=77445 TEST=Everything should just work(TM). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81803

Patch Set 1 : '' #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+768 lines, -599 lines) Patch
M chrome/browser/importer/profile_import_process_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/autofill_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/automation_messages.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/automation_messages.cc View 1 2 3 2 chunks +1 line, -17 lines 0 comments Download
A chrome/common/common_param_traits.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/common/common_param_traits.cc View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M chrome/renderer/blocked_plugin.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/common/common_param_traits.h View 1 2 3 6 chunks +0 lines, -214 lines 0 comments Download
M content/common/common_param_traits.cc View 1 2 3 6 chunks +0 lines, -360 lines 0 comments Download
M content/common/content_message_generator.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/common/drag_messages.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/plugin_messages.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/webblob_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/common/webkit_param_traits.h View 1 2 1 chunk +239 lines, -0 lines 0 comments Download
A content/common/webkit_param_traits.cc View 1 2 1 chunk +375 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
grt (UTC plus 2)
9 years, 8 months ago (2011-04-14 03:16:25 UTC) #1
amit
lgtm http://codereview.chromium.org/6840044/diff/1016/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): http://codereview.chromium.org/6840044/diff/1016/chrome/chrome_common.gypi#newcode136 chrome/chrome_common.gypi:136: 'common/automation_message_types.cc', How about: common_automation_messages.h/cc, chrome_frame_messages.h/cc? http://codereview.chromium.org/6840044/diff/1016/chrome_frame/chrome_frame.gyp File chrome_frame/chrome_frame.gyp ...
9 years, 8 months ago (2011-04-14 15:48:36 UTC) #2
jam
I'm very apprehensive about an approach that I agree is not maintainable. It's hard for ...
9 years, 8 months ago (2011-04-14 16:22:34 UTC) #3
amit
Well, I don't think there's anything hacky about refactoring automation_messages.h et al and this is ...
9 years, 8 months ago (2011-04-14 17:56:47 UTC) #4
grt (UTC plus 2)
On Thu, Apr 14, 2011 at 12:22 PM, John Abd-El-Malek <jam@chromium.org>wrote: > I'm very apprehensive ...
9 years, 8 months ago (2011-04-14 17:59:05 UTC) #5
jam
On Thu, Apr 14, 2011 at 10:56 AM, Amit Joshi <amit@chromium.org> wrote: > Well, I ...
9 years, 8 months ago (2011-04-14 18:01:33 UTC) #6
jam
On Thu, Apr 14, 2011 at 10:58 AM, Greg Thompson <grt@chromium.org> wrote: > On Thu, ...
9 years, 8 months ago (2011-04-14 18:03:36 UTC) #7
amit
There are other good reasons to separate test automation messages from chrome frame messages. Historically ...
9 years, 8 months ago (2011-04-14 18:04:25 UTC) #8
grt (UTC plus 2)
On Thu, Apr 14, 2011 at 2:03 PM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
9 years, 8 months ago (2011-04-14 18:10:16 UTC) #9
jam
On Thu, Apr 14, 2011 at 11:04 AM, Amit Joshi <amit@chromium.org> wrote: > There are ...
9 years, 8 months ago (2011-04-14 18:11:00 UTC) #10
jam
On Thu, Apr 14, 2011 at 11:10 AM, Greg Thompson <grt@chromium.org> wrote: > > On ...
9 years, 8 months ago (2011-04-14 18:25:27 UTC) #11
jam
On Thu, Apr 14, 2011 at 11:25 AM, John Abd-El-Malek <jam@chromium.org>wrote: > > > On ...
9 years, 8 months ago (2011-04-14 19:43:01 UTC) #12
grt (UTC plus 2)
Hi John, PTAL. I've made the changes we discussed yesterday. Thanks.
9 years, 8 months ago (2011-04-15 18:42:32 UTC) #13
jam
http://codereview.chromium.org/6840044/diff/11005/chrome/common/common_param_traits.cc File chrome/common/common_param_traits.cc (right): http://codereview.chromium.org/6840044/diff/11005/chrome/common/common_param_traits.cc#newcode6 chrome/common/common_param_traits.cc:6: #include "ipc/ipc_message.h" nit: need blank line before this http://codereview.chromium.org/6840044/diff/11005/content/common/common_param_traits.cc ...
9 years, 8 months ago (2011-04-15 19:01:21 UTC) #14
grt (UTC plus 2)
PTAL. http://codereview.chromium.org/6840044/diff/11005/chrome/common/common_param_traits.cc File chrome/common/common_param_traits.cc (right): http://codereview.chromium.org/6840044/diff/11005/chrome/common/common_param_traits.cc#newcode6 chrome/common/common_param_traits.cc:6: #include "ipc/ipc_message.h" On 2011/04/15 19:01:21, John Abd-El-Malek wrote: ...
9 years, 8 months ago (2011-04-15 19:39:53 UTC) #15
jam
http://codereview.chromium.org/6840044/diff/11005/content/common/content_message_generator.cc File content/common/content_message_generator.cc (right): http://codereview.chromium.org/6840044/diff/11005/content/common/content_message_generator.cc#newcode8 content/common/content_message_generator.cc:8: #include "content/common/webkit_param_traits.h" On 2011/04/15 19:39:54, grt wrote: > On ...
9 years, 8 months ago (2011-04-15 19:42:19 UTC) #16
grt (UTC plus 2)
On 2011/04/15 19:42:19, John Abd-El-Malek wrote: > http://codereview.chromium.org/6840044/diff/11005/content/common/content_message_generator.cc > File content/common/content_message_generator.cc (right): > > http://codereview.chromium.org/6840044/diff/11005/content/common/content_message_generator.cc#newcode8 ...
9 years, 8 months ago (2011-04-15 19:45:30 UTC) #17
jam
On Fri, Apr 15, 2011 at 12:45 PM, <grt@chromium.org> wrote: > On 2011/04/15 19:42:19, John ...
9 years, 8 months ago (2011-04-15 19:49:43 UTC) #18
grt (UTC plus 2)
On 2011/04/15 19:49:43, John Abd-El-Malek wrote: > Non-IPC code has the guideline of trying to ...
9 years, 8 months ago (2011-04-15 19:55:13 UTC) #19
jam
lgtm, thanks for tracking this down!
9 years, 8 months ago (2011-04-15 20:00:49 UTC) #20
commit-bot: I haz the power
9 years, 8 months ago (2011-04-15 21:07:05 UTC) #21
Change committed as 81803

Powered by Google App Engine
This is Rietveld 408576698