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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "wtf/text/TextCodecReplacement.h" 5 #include "wtf/text/TextCodecReplacement.h"
6 6
7 #include "wtf/PtrUtil.h" 7 #include "wtf/PtrUtil.h"
8 #include "wtf/text/CharacterNames.h" 8 #include "wtf/text/CharacterNames.h"
9 #include "wtf/text/WTFString.h" 9 #include "wtf/text/WTFString.h"
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 registrar("csiso2022kr", "replacement"); 25 registrar("csiso2022kr", "replacement");
26 registrar("hz-gb-2312", "replacement"); 26 registrar("hz-gb-2312", "replacement");
27 registrar("iso-2022-cn", "replacement"); 27 registrar("iso-2022-cn", "replacement");
28 registrar("iso-2022-cn-ext", "replacement"); 28 registrar("iso-2022-cn-ext", "replacement");
29 registrar("iso-2022-kr", "replacement"); 29 registrar("iso-2022-kr", "replacement");
30 } 30 }
31 31
32 static std::unique_ptr<TextCodec> newStreamingTextDecoderReplacement( 32 static std::unique_ptr<TextCodec> newStreamingTextDecoderReplacement(
33 const TextEncoding&, 33 const TextEncoding&,
34 const void*) { 34 const void*) {
35 return wrapUnique(new TextCodecReplacement); 35 return WTF::wrapUnique(new TextCodecReplacement);
36 } 36 }
37 37
38 void TextCodecReplacement::registerCodecs(TextCodecRegistrar registrar) { 38 void TextCodecReplacement::registerCodecs(TextCodecRegistrar registrar) {
39 registrar("replacement", newStreamingTextDecoderReplacement, 0); 39 registrar("replacement", newStreamingTextDecoderReplacement, 0);
40 } 40 }
41 41
42 String TextCodecReplacement::decode(const char*, 42 String TextCodecReplacement::decode(const char*,
43 size_t length, 43 size_t length,
44 FlushBehavior, 44 FlushBehavior,
45 bool, 45 bool,
(...skipping 10 matching lines...) Expand all
56 m_replacementErrorReturned = true; 56 m_replacementErrorReturned = true;
57 sawError = true; 57 sawError = true;
58 return String(&replacementCharacter, 1); 58 return String(&replacementCharacter, 1);
59 } 59 }
60 60
61 // 3. Return finished. 61 // 3. Return finished.
62 return String(); 62 return String();
63 } 63 }
64 64
65 } // namespace WTF 65 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698