#include "extensions/shell/renderer/shell_content_renderer_client.h"
#include <memory>
#include "components/nacl/common/buildflags.h"
#include "content/public/common/content_constants.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_frame_observer.h"
#include "content/public/renderer/render_frame_observer_tracker.h"
#include "content/public/renderer/render_thread.h"
#include "extensions/common/extensions_client.h"
#include "extensions/renderer/api/core_extensions_renderer_api_provider.h"
#include "extensions/renderer/dispatcher.h"
#include "extensions/renderer/extension_frame_helper.h"
#include "extensions/shell/common/shell_extensions_client.h"
#include "extensions/shell/renderer/api/shell_extensions_renderer_api_provider.h"
#include "extensions/shell/renderer/shell_extensions_renderer_client.h"
#include "third_party/blink/public/web/web_local_frame.h"
#if BUILDFLAG(ENABLE_NACL)
#include "components/nacl/common/nacl_constants.h"
#include "components/nacl/renderer/nacl_helper.h"
#endif
WebFrame;
WebString;
RenderThread;
namespace extensions {
ShellContentRendererClient::ShellContentRendererClient() = default;
ShellContentRendererClient::~ShellContentRendererClient() = default;
void ShellContentRendererClient::RenderThreadStarted() { … }
void ShellContentRendererClient::RenderFrameCreated(
content::RenderFrame* render_frame) { … }
bool ShellContentRendererClient::OverrideCreatePlugin(
content::RenderFrame* render_frame,
const blink::WebPluginParams& params,
blink::WebPlugin** plugin) { … }
blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement(
content::RenderFrame* render_frame,
const base::FilePath& plugin_path) { … }
void ShellContentRendererClient::WillSendRequest(
blink::WebLocalFrame* frame,
ui::PageTransition transition_type,
const blink::WebURL& upstream_url,
const blink::WebURL& target_url,
const net::SiteForCookies& site_for_cookies,
const url::Origin* initiator_origin,
GURL* new_url) { … }
bool ShellContentRendererClient::IsExternalPepperPlugin(
const std::string& module_name) { … }
void ShellContentRendererClient::RunScriptsAtDocumentStart(
content::RenderFrame* render_frame) { … }
void ShellContentRendererClient::RunScriptsAtDocumentEnd(
content::RenderFrame* render_frame) { … }
void ShellContentRendererClient::SetClientsForTesting(
std::unique_ptr<ExtensionsClient> extensions_client,
std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client) { … }
ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { … }
}