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

Side by Side Diff: third_party/WebKit/Source/wtf/text/CString.h

Issue 2240053002: Replace WTF_LOG() with NETWORK_DVLOG() or RESOURCE_LOADING_DVLOG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sstream, EXPECT_STREQ Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2003, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 private: 84 private:
85 void copyBufferIfNeeded(); 85 void copyBufferIfNeeded();
86 void init(const char*, size_t length); 86 void init(const char*, size_t length);
87 RefPtr<CStringBuffer> m_buffer; 87 RefPtr<CStringBuffer> m_buffer;
88 }; 88 };
89 89
90 WTF_EXPORT bool operator==(const CString& a, const CString& b); 90 WTF_EXPORT bool operator==(const CString& a, const CString& b);
91 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); } 91 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); }
92 WTF_EXPORT bool operator==(const CString& a, const char* b); 92 WTF_EXPORT bool operator==(const CString& a, const char* b);
93 inline bool operator!=(const CString& a, const char* b) { return !(a == b); } 93 inline bool operator!=(const CString& a, const char* b) { return !(a == b); }
94 // Pretty printer for gtest and base/logging.*. It prepends and appends
95 // double-quotes, and escapes characters other than ASCII printables.
96 WTF_EXPORT std::ostream& operator<<(std::ostream&, const CString&);
94 97
95 } // namespace WTF 98 } // namespace WTF
96 99
97 using WTF::CString; 100 using WTF::CString;
98 101
99 #endif // CString_h 102 #endif // CString_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698