#include "components/subresource_filter/core/common/unindexed_ruleset.h"
#include "base/check.h"
#include "base/check_op.h"
#include "base/not_fatal_until.h"
#include "base/numerics/safe_conversions.h"
namespace subresource_filter {
proto;
UnindexedRulesetReader::UnindexedRulesetReader(
google::protobuf::io::ZeroCopyInputStream* stream)
: … { … }
UnindexedRulesetReader::~UnindexedRulesetReader() = default;
bool UnindexedRulesetReader::ReadNextChunk(proto::FilteringRules* chunk) { … }
UnindexedRulesetWriter::UnindexedRulesetWriter(
google::protobuf::io::ZeroCopyOutputStream* stream,
int max_rules_per_chunk)
: … { … }
UnindexedRulesetWriter::~UnindexedRulesetWriter() { … }
bool UnindexedRulesetWriter::AddUrlRule(const proto::UrlRule& rule) { … }
bool UnindexedRulesetWriter::Finish() { … }
bool UnindexedRulesetWriter::WritePendingChunk() { … }
}