| OLD | NEW |
| 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 #ifndef IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ | 5 #ifndef IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ |
| 6 #define IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ | 6 #define IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include "ios/third_party/blink/src/html_tokenizer_adapter.h" | 10 #include "ios/third_party/blink/src/html_tokenizer_adapter.h" |
| 9 | 11 |
| 10 namespace WebCore { | 12 namespace WebCore { |
| 11 | 13 |
| 12 const LChar kEndOfFileMarker = 0; | 14 const LChar kEndOfFileMarker = 0; |
| 13 | 15 |
| 14 // CharacterProvider provides input characters to WebCore::HTMLTokenizer. | 16 // CharacterProvider provides input characters to WebCore::HTMLTokenizer. |
| 15 // It replaces WebCore::SegmentedString (which sits ontop of WTF::String). | 17 // It replaces WebCore::SegmentedString (which sits ontop of WTF::String). |
| 16 class CharacterProvider { | 18 class CharacterProvider { |
| 17 WTF_MAKE_NONCOPYABLE(CharacterProvider); | 19 WTF_MAKE_NONCOPYABLE(CharacterProvider); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 size_t _totalBytes; | 159 size_t _totalBytes; |
| 158 size_t _remainingBytes; | 160 size_t _remainingBytes; |
| 159 const LChar* _singleBytePtr; | 161 const LChar* _singleBytePtr; |
| 160 const UChar* _doubleBytePtr; | 162 const UChar* _doubleBytePtr; |
| 161 bool _littleEndian; | 163 bool _littleEndian; |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 } | 166 } |
| 165 | 167 |
| 166 #endif // IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ | 168 #endif // IOS_THIRD_PARTY_BLINK_SRC_HTML_CHARACTER_PROVIDER_H_ |
| OLD | NEW |