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

Unified Diff: base/string_piece.h

Issue 193072: Move StringPiece into the base namespace. It is colliding (Closed)
Patch Set: take 2 Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_path.cc ('k') | base/string_piece.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_piece.h
diff --git a/base/string_piece.h b/base/string_piece.h
index fe108069c706a58c60fb8ef7f1a7551893081d37..47d49684548f62d99b9ce7af33947e05cba17ec1 100644
--- a/base/string_piece.h
+++ b/base/string_piece.h
@@ -24,6 +24,8 @@
#include "base/basictypes.h"
+namespace base {
+
class StringPiece {
public:
typedef size_t size_type;
@@ -181,4 +183,6 @@ inline bool operator>=(const StringPiece& x, const StringPiece& y) {
// allow StringPiece to be logged (needed for unit testing).
extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece);
+} // namespace base
+
#endif // BASE_STRING_PIECE_H_
« no previous file with comments | « base/file_path.cc ('k') | base/string_piece.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698