--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
There's no need to comment when something is exported for testing purposes only. Please don't worry about doing that.
We export functions to support the component build, which is meant only as a "maintainers build" of the system. Gratuitous exports are OK.
For example, when you export an entire class, you also export all inline functions, making them non-inline. We would not do that if we cared about shipping this config.
Use export macros liberally to make the component build easier to maintain.
Finally, separating public API from internal API is better done through more explicit conventions such as:
1- Put public API in a "public" folder (enforce usage with checkdeps),
2- Put internal API (sounds like an oxymoron, but this refers to private stuff that is visible in a public header) in an "internal" namespace,
3- Use "ForTesting" suffix on public methods made available only for testing.
-Darin