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

Side by Side Diff: base/logging.h

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_path.cc ('k') | base/string_piece.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_LOGGING_H_ 5 #ifndef BASE_LOGGING_H_
6 #define BASE_LOGGING_H_ 6 #define BASE_LOGGING_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <cstring> 10 #include <cstring>
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 #define NOTIMPLEMENTED() NOTREACHED() 912 #define NOTIMPLEMENTED() NOTREACHED()
913 #elif NOTIMPLEMENTED_POLICY == 4 913 #elif NOTIMPLEMENTED_POLICY == 4
914 #define NOTIMPLEMENTED() LOG(ERROR) << NOTIMPLEMENTED_MSG 914 #define NOTIMPLEMENTED() LOG(ERROR) << NOTIMPLEMENTED_MSG
915 #elif NOTIMPLEMENTED_POLICY == 5 915 #elif NOTIMPLEMENTED_POLICY == 5
916 #define NOTIMPLEMENTED() do {\ 916 #define NOTIMPLEMENTED() do {\
917 static int count = 0;\ 917 static int count = 0;\
918 LOG_IF(ERROR, 0 == count++) << NOTIMPLEMENTED_MSG;\ 918 LOG_IF(ERROR, 0 == count++) << NOTIMPLEMENTED_MSG;\
919 } while(0) 919 } while(0)
920 #endif 920 #endif
921 921
922 namespace base {
923
924 class StringPiece;
925
926 // allow StringPiece to be logged (needed for unit testing).
927 extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece);
928
929 } // namespace base
930
922 #endif // BASE_LOGGING_H_ 931 #endif // BASE_LOGGING_H_
OLDNEW
« no previous file with comments | « base/file_path.cc ('k') | base/string_piece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698