diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 15:28:34 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:54:51 +0000 |
commit | 2a19c63448c84c1805fb1a585c3651318bb86ca7 (patch) | |
tree | eb17888e8531aa6ee5e85721bd553b832a7e5156 /chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h | |
parent | b014812705fc80bff0a5c120dfcef88f349816dc (diff) | |
download | qtwebengine-chromium-2a19c63448c84c1805fb1a585c3651318bb86ca7.tar.gz |
BASELINE: Update Chromium to 69.0.3497.70
Change-Id: I2b7b56e4e7a8b26656930def0d4575dc32b900a0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h b/chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h index 5bc0c2793b4..e13cad7df69 100644 --- a/chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h +++ b/chromium/third_party/blink/renderer/platform/wtf/text/text_codec.h @@ -56,7 +56,7 @@ enum UnencodableHandling { typedef char UnencodableReplacementArray[32]; -enum FlushBehavior { +enum class FlushBehavior { // More bytes are coming, don't flush the codec. kDoNotFlush = 0, @@ -68,10 +68,6 @@ enum FlushBehavior { kDataEOF }; -static_assert(!kDoNotFlush, "DoNotFlush should be falsy"); -static_assert(kFetchEOF, "FetchEOF should be truthy"); -static_assert(kDataEOF, "DataEOF should be truthy"); - class WTF_EXPORT TextCodec { USING_FAST_MALLOC(TextCodec); @@ -81,7 +77,7 @@ class WTF_EXPORT TextCodec { String Decode(const char* str, size_t length, - FlushBehavior flush = kDoNotFlush) { + FlushBehavior flush = FlushBehavior::kDoNotFlush) { bool ignored; return Decode(str, length, flush, false, ignored); } @@ -97,9 +93,9 @@ class WTF_EXPORT TextCodec { // Fills a null-terminated string representation of the given // unencodable character into the given replacement buffer. // The length of the string (not including the null) will be returned. - static int GetUnencodableReplacement(unsigned code_point, - UnencodableHandling, - UnencodableReplacementArray); + static uint32_t GetUnencodableReplacement(unsigned code_point, + UnencodableHandling, + UnencodableReplacementArray); DISALLOW_COPY_AND_ASSIGN(TextCodec); }; |