* @param {!Window} win
(win)
| 211 | * @param {!Window} win |
| 212 | */ |
| 213 | constructor(win) { |
| 214 | /** @private {!Array<string>} */ |
| 215 | this.fullHtml_ = []; |
| 216 | |
| 217 | /** @const @private */ |
| 218 | this.vsync_ = Services.vsyncFor(win); |
| 219 | |
| 220 | /** @private {?function(!Document):!Element} */ |
| 221 | this.onBody_ = null; |
| 222 | |
| 223 | /** @private {?function()} */ |
| 224 | this.onBodyChunk_ = null; |
| 225 | |
| 226 | /** @private {?function()} */ |
| 227 | this.onEnd_ = null; |
| 228 | |
| 229 | /** @const @private {!Promise} */ |
| 230 | this.success_ = Promise.resolve(); |
| 231 | |
| 232 | /** @private {boolean} */ |
| 233 | this.eof_ = false; |
| 234 | } |
| 235 | |
| 236 | /** @override */ |
| 237 | onBody(callback) { |