#include "extensions/browser/api/declarative_net_request/filter_list_converter/converter.h"
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "components/subresource_filter/tools/ruleset_converter/rule_stream.h"
#include "extensions/browser/api/declarative_net_request/constants.h"
#include "extensions/browser/api/declarative_net_request/indexed_rule.h"
#include "extensions/common/api/declarative_net_request.h"
#include "extensions/common/api/declarative_net_request/constants.h"
#include "extensions/common/api/declarative_net_request/test_utils.h"
#include "url/gurl.h"
namespace extensions::declarative_net_request {
namespace {
proto;
dnr_api;
ElementTypeMap;
class ProtoToJSONRuleConverter { … };
class DNRJsonRuleOutputStream : public subresource_filter::RuleOutputStream { … };
}
namespace filter_list_converter {
bool ConvertRuleset(const std::vector<base::FilePath>& filter_list_inputs,
const base::FilePath& output_path,
WriteType type,
bool noisy) { … }
}
}