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

Issue 8929002: Don't attempt to forward declare StringPiece. (Closed)

Created:
9 years ago by erikwright (departed)
Modified:
9 years ago
Reviewers:
cbentzel
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

Don't attempt to forward declare StringPiece. 1) This is discouraged because it prevents callers from benefiting from automatic coersion from string/char* types. 2) A follow-up CL (http://codereview.chromium.org/8659047/) will make StringPiece a template, and thus awkward to forward declare. The very small number of places that were appropriately forward declaring it do not justify writing a 'string_piece_forward.h'. BUG=87634 R=cbentzel@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114219

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M net/base/big_endian.h View 1 chunk +1 line, -4 lines 0 comments Download
M net/dns/dns_client.h View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
erikwright (departed)
9 years ago (2011-12-13 02:57:54 UTC) #1
cbentzel
It looks like you have forward declaration mechanism for this in logging.h - although inlined ...
9 years ago (2011-12-13 11:41:26 UTC) #2
erikwright (departed)
I did an analysis that showed that for most files that were forward declaring it, ...
9 years ago (2011-12-13 13:39:41 UTC) #3
erikwright (departed)
Actually, on second thought, moving the logging support from logging.h to string_piece.h implies including <ostream> ...
9 years ago (2011-12-13 13:54:06 UTC) #4
cbentzel
LGTM thanks for the analysis and explanation On Tue, Dec 13, 2011 at 8:54 AM, ...
9 years ago (2011-12-13 14:50:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/8929002/1
9 years ago (2011-12-13 14:54:43 UTC) #6
commit-bot: I haz the power
9 years ago (2011-12-13 16:27:09 UTC) #7
Change committed as 114219

Powered by Google App Engine
This is Rietveld 408576698