blob: 8b9fa4abc8b6d2e330d9b7288dc6280f351255a5 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/third_party/quiche/src/quic/core/quic_error_codes.h"
#include "net/third_party/quiche/src/quic/core/quic_types.h"
#include "net/third_party/quiche/src/quic/platform/api/quic_string.h"
#include "net/third_party/quiche/src/quic/platform/api/quic_string_piece.h"
namespace quic {
class QUIC_EXPORT_PRIVATE CryptoMessageParser {
virtual ~CryptoMessageParser() {}
virtual QuicErrorCode error() const = 0;
virtual const QuicString& error_detail() const = 0;
// Processes input data, which must be delivered in order. The input data
// being processed was received at encryption level |level|. Returns
// false if there was an error, and true otherwise.
virtual bool ProcessInput(QuicStringPiece input, EncryptionLevel level) = 0;
// Returns the number of bytes of buffered input data remaining to be
// parsed.
virtual size_t InputBytesRemaining() const = 0;
} // namespace quic