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

Issue 10735028: Add CONTENT_EXPORT_PRIVATE macro (Closed)

Created:
8 years, 5 months ago by jochen (gone - plz use gerrit)
Modified:
8 years, 5 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add CONTENT_EXPORT_PRIVATE macro In contrast to CONTENT_EXPORT which exports symbols to embedders, CONTENT_EXPORT_PRIVATE is intended to allow unit tests to access features not meant to be used directly by real embedders. BUG=136495 TEST=none

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M content/common/content_export.h View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jochen (gone - plz use gerrit)
plz review
8 years, 5 months ago (2012-07-10 09:57:41 UTC) #1
jam
I didn't think the chromium-dev thread on this topic had reached a conclusion about whether ...
8 years, 5 months ago (2012-07-10 16:01:26 UTC) #2
jochen (gone - plz use gerrit)
On 2012/07/10 16:01:26, John Abd-El-Malek wrote: > I didn't think the chromium-dev thread on this ...
8 years, 5 months ago (2012-07-10 18:12:25 UTC) #3
jam
On 2012/07/10 18:12:25, jochen wrote: > On 2012/07/10 16:01:26, John Abd-El-Malek wrote: > > I ...
8 years, 5 months ago (2012-07-10 20:39:55 UTC) #4
jochen (gone - plz use gerrit)
8 years, 5 months ago (2012-07-11 17:44:27 UTC) #5
On 2012/07/10 20:39:55, John Abd-El-Malek wrote:
> > 
> > I think it's a bit unfortunate that the CONTENT_EXPORT macro is used outside
> of
> > content/public - actually, given that all content API should be in
> > content/public, it feels wrong to need such a macro at all.
> 
> what about unittests inside content? not exporting symbols would mean not
using
> component build for the unittest targets, which would be slower

I think what I meant to say was that we shouldn't have CONTENT_EXPORT at all,
but just export all symbols defined in headers in content/public. We'd only use
the macro for stuff for testing then. Right now, it seems like we have to mark
everything in the API twice.

Not sure whether that's possible.

I guess it's no big deal either way. So in case you prefer to use CONTENT_EXPORT
everywhere, that's fine with me

Powered by Google App Engine
This is Rietveld 408576698