From 1f82b3d181c2e5c87670645f1f298532ca813956 Mon Sep 17 00:00:00 2001 From: "erikwright@chromium.org" Date: Tue, 13 Dec 2011 00:13:00 +0000 Subject: 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=brettw@chromium.org Review URL: http://codereview.chromium.org/8820016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114124 0039d316-1c4b-4281-b951-d872f2087c98 --- base/sys_string_conversions.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'base/sys_string_conversions.h') diff --git a/base/sys_string_conversions.h b/base/sys_string_conversions.h index d2f4d1b..2be248d 100644 --- a/base/sys_string_conversions.h +++ b/base/sys_string_conversions.h @@ -15,6 +15,7 @@ #include "base/base_export.h" #include "base/basictypes.h" #include "base/string16.h" +#include "base/string_piece.h" #if defined(OS_MACOSX) #include @@ -27,8 +28,6 @@ class NSString; namespace base { -class StringPiece; - // Converts between wide and UTF-8 representations of a string. On error, the // result is system-dependent. BASE_EXPORT std::string SysWideToUTF8(const std::wstring& wide); -- cgit v1.1