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

Side by Side Diff: third_party/WebKit/Source/wtf/text/WTFString.cpp

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007-2009 Torch Mobile, Inc. 4 * Copyright (C) 2007-2009 Torch Mobile, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 out.setf(std::ios_base::hex, std::ios_base::basefield); 968 out.setf(std::ios_base::hex, std::ios_base::basefield);
969 out.setf(std::ios::uppercase); 969 out.setf(std::ios::uppercase);
970 out << character; 970 out << character;
971 } 971 }
972 break; 972 break;
973 } 973 }
974 } 974 }
975 return out << '"'; 975 return out << '"';
976 } 976 }
977 977
978 CrossThreadCopier<String>::Type CrossThreadCopier<String>::copy(const String& st r)
979 {
980 return str.isolatedCopy();
981 }
982
978 } // namespace WTF 983 } // namespace WTF
979 984
980 #ifndef NDEBUG 985 #ifndef NDEBUG
981 // For use in the debugger 986 // For use in the debugger
982 String* string(const char*); 987 String* string(const char*);
983 Vector<char> asciiDebug(StringImpl*); 988 Vector<char> asciiDebug(StringImpl*);
984 Vector<char> asciiDebug(String&); 989 Vector<char> asciiDebug(String&);
985 990
986 void String::show() const 991 void String::show() const
987 { 992 {
(...skipping 27 matching lines...) Expand all
1015 buffer.append('\0'); 1020 buffer.append('\0');
1016 return buffer; 1021 return buffer;
1017 } 1022 }
1018 1023
1019 Vector<char> asciiDebug(String& string) 1024 Vector<char> asciiDebug(String& string)
1020 { 1025 {
1021 return asciiDebug(string.impl()); 1026 return asciiDebug(string.impl());
1022 } 1027 }
1023 1028
1024 #endif 1029 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698