blob: e738f8f3c733ff16192785f140de1de9f10116e7 [file] [log] [blame]
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_SHELL_RENDERER_WEB_TEST_WEB_TEST_CONTENT_RENDERER_CLIENT_H_
#define CONTENT_SHELL_RENDERER_WEB_TEST_WEB_TEST_CONTENT_RENDERER_CLIENT_H_
#include <memory>
#include "content/shell/renderer/shell_content_renderer_client.h"
namespace content {
class WebTestRenderThreadObserver;
class WebTestContentRendererClient : public ShellContentRendererClient {
public:
WebTestContentRendererClient();
~WebTestContentRendererClient() override;
// ShellContentRendererClient implementation.
void RenderThreadStarted() override;
void RenderFrameCreated(RenderFrame* render_frame) override;
void RenderViewCreated(RenderView* render_view) override;
blink::WebThemeEngine* OverrideThemeEngine() override;
std::unique_ptr<MediaStreamRendererFactory> CreateMediaStreamRendererFactory()
override;
std::unique_ptr<content::WebSocketHandshakeThrottleProvider>
CreateWebSocketHandshakeThrottleProvider() override;
void DidInitializeWorkerContextOnWorkerThread(
v8::Local<v8::Context> context) override;
void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override;
bool IsIdleMediaSuspendEnabled() override;
bool SuppressLegacyTLSVersionConsoleMessage() override;
private:
std::unique_ptr<WebTestRenderThreadObserver> shell_observer_;
};
} // namespace content
#endif // CONTENT_SHELL_RENDERER_WEB_TEST_WEB_TEST_CONTENT_RENDERER_CLIENT_H_