chromium/chrome/browser/search/most_visited_iframe_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 "chrome/browser/search/most_visited_iframe_source.h"

#include <string_view>

#include "base/memory/ref_counted_memory.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "chrome/browser/search/instant_service.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/new_tab_page_instant_resources.h"
#include "components/search/ntp_features.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"

namespace {

// Multi-iframe version, used by third party remote NTPs.
const char kTitleHTMLPath[] =;
const char kTitleCSSPath[] =;
const char kTitleJSPath[] =;

}  // namespace

MostVisitedIframeSource::MostVisitedIframeSource() = default;

MostVisitedIframeSource::~MostVisitedIframeSource() = default;

std::string MostVisitedIframeSource::GetSource() {}

void MostVisitedIframeSource::StartDataRequest(
    const GURL& url,
    const content::WebContents::Getter& wc_getter,
    content::URLDataSource::GotDataCallback callback) {}

std::string MostVisitedIframeSource::GetMimeType(const GURL& url) {}

bool MostVisitedIframeSource::ShouldServeMimeTypeAsContentTypeHeader() {}

bool MostVisitedIframeSource::AllowCaching() {}

bool MostVisitedIframeSource::ShouldServiceRequest(
    const GURL& url,
    content::BrowserContext* browser_context,
    int render_process_id) {}

bool MostVisitedIframeSource::ShouldDenyXFrameOptions() {}

bool MostVisitedIframeSource::ServesPath(const std::string& path) const {}

void MostVisitedIframeSource::SendResource(
    int resource_id,
    content::URLDataSource::GotDataCallback callback) {}

void MostVisitedIframeSource::SendJSWithOrigin(
    int resource_id,
    const content::WebContents::Getter& wc_getter,
    content::URLDataSource::GotDataCallback callback) {}

bool MostVisitedIframeSource::GetOrigin(
    const content::WebContents::Getter& wc_getter,
    std::string* origin) const {}