Add support to content shell for app banner event layout tests.
[chromium-blink-merge.git] / content / shell / renderer / layout_test / layout_test_content_renderer_client.h
bloba20db61d74d81e112fe2673944d98b946bd2c6d9
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"
12 namespace blink {
13 class WebFrame;
14 class WebPlugin;
15 struct WebPluginParams;
18 namespace web_cache {
19 class WebCacheRenderProcessObserver;
22 namespace content {
24 class LayoutTestRenderProcessObserver;
25 class MockWebClipboardImpl;
26 class WebTestProxyBase;
28 class LayoutTestContentRendererClient : public ShellContentRendererClient {
29 public:
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;
49 private:
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_