chromium/content/public/browser/url_data_source.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// A chrome-untrusted data source's name starts with chrome-untrusted://.
bool IsChromeUntrustedDataSource(content::URLDataSource* source) {}
}  // namespace

namespace content {

// static
void URLDataSource::Add(BrowserContext* browser_context,
                        std::unique_ptr<URLDataSource> source) {}

// static
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() {}

}  // namespace content