#include "content/public/browser/url_data_source.h"
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "content/browser/webui/url_data_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/common/url_constants.h"
#include "services/network/public/mojom/content_security_policy.mojom.h"
namespace {
bool IsChromeUntrustedDataSource(content::URLDataSource* source) { … }
}
namespace content {
void URLDataSource::Add(BrowserContext* browser_context,
std::unique_ptr<URLDataSource> source) { … }
std::string URLDataSource::URLToRequestPath(const GURL& url) { … }
bool URLDataSource::ShouldReplaceExistingSource() { … }
bool URLDataSource::AllowCaching() { … }
bool URLDataSource::ShouldAddContentSecurityPolicy() { … }
std::string URLDataSource::GetContentSecurityPolicy(
network::mojom::CSPDirectiveName directive) { … }
std::string URLDataSource::GetCrossOriginOpenerPolicy() { … }
std::string URLDataSource::GetCrossOriginEmbedderPolicy() { … }
std::string URLDataSource::GetCrossOriginResourcePolicy() { … }
bool URLDataSource::ShouldDenyXFrameOptions() { … }
bool URLDataSource::ShouldServiceRequest(const GURL& url,
BrowserContext* browser_context,
int render_process_id) { … }
bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() { … }
std::string URLDataSource::GetAccessControlAllowOriginForOrigin(
const std::string& origin) { … }
const ui::TemplateReplacements* URLDataSource::GetReplacements() { … }
bool URLDataSource::ShouldReplaceI18nInJS() { … }
}