1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/shell/renderer/shell_content_renderer_client.h"
15 struct WebPluginParams
;
19 class WebCacheRenderProcessObserver
;
24 class LayoutTestRenderProcessObserver
;
25 class MockWebClipboardImpl
;
26 class WebTestProxyBase
;
28 class LayoutTestContentRendererClient
: public ShellContentRendererClient
{
30 LayoutTestContentRendererClient();
31 ~LayoutTestContentRendererClient() override
;
33 // ShellContentRendererClient implementation.
34 void RenderThreadStarted() override
;
35 void RenderFrameCreated(RenderFrame
* render_frame
) override
;
36 void RenderViewCreated(RenderView
* render_view
) override
;
37 blink::WebMediaStreamCenter
* OverrideCreateWebMediaStreamCenter(
38 blink::WebMediaStreamCenterClient
* client
) override
;
39 blink::WebRTCPeerConnectionHandler
* OverrideCreateWebRTCPeerConnectionHandler(
40 blink::WebRTCPeerConnectionHandlerClient
* client
) override
;
41 blink::WebMIDIAccessor
* OverrideCreateMIDIAccessor(
42 blink::WebMIDIAccessorClient
* client
) override
;
43 blink::WebAudioDevice
* OverrideCreateAudioDevice(double sample_rate
) override
;
44 blink::WebClipboard
* OverrideWebClipboard() override
;
45 blink::WebThemeEngine
* OverrideThemeEngine() override
;
46 scoped_ptr
<blink::WebAppBannerClient
> CreateAppBannerClient(
47 RenderFrame
* render_frame
) override
;
50 void WebTestProxyCreated(RenderView
* render_view
, WebTestProxyBase
* proxy
);
52 scoped_ptr
<LayoutTestRenderProcessObserver
> shell_observer_
;
53 scoped_ptr
<MockWebClipboardImpl
> clipboard_
;
56 } // namespace content
58 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H_