#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/browser/network/network_errors_listing_ui.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/json/json_writer.h"
#include "base/memory/ref_counted_memory.h"
#include "base/values.h"
#include "content/grit/network_errors_resources.h"
#include "content/grit/network_errors_resources_map.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/url_constants.h"
#include "net/base/net_errors.h"
#include "net/log/net_log_util.h"
static const char kNetworkErrorDataFile[] = …;
static const char kErrorCodeField[] = …;
static const char kErrorCodesDataName[] = …;
static const char kErrorIdField[] = …;
static const char kNetworkErrorKey[] = …;
namespace content {
namespace {
base::Value::List GetNetworkErrorData() { … }
bool ShouldHandleWebUIRequestCallback(const std::string& path) { … }
void HandleWebUIRequestCallback(BrowserContext* current_context,
const std::string& path,
WebUIDataSource::GotDataCallback callback) { … }
}
NetworkErrorsListingUI::NetworkErrorsListingUI(WebUI* web_ui)
: … { … }
}