Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / shell / renderer / layout_test / layout_test_content_renderer_client.h
blob6eb2b8f960b77a0e28012549dc783747db86092c
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 test_runner {
23 class WebTestProxyBase;
26 namespace content {
28 class LayoutTestRenderProcessObserver;
29 class MockWebClipboardImpl;
31 class LayoutTestContentRendererClient : public ShellContentRendererClient {
32 public:
33 LayoutTestContentRendererClient();
34 ~LayoutTestContentRendererClient() override;
36 // ShellContentRendererClient implementation.
37 void RenderThreadStarted() override;
38 void RenderFrameCreated(RenderFrame* render_frame) override;
39 void RenderViewCreated(RenderView* render_view) override;
40 blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter(
41 blink::WebMediaStreamCenterClient* client) override;
42 blink::WebRTCPeerConnectionHandler* OverrideCreateWebRTCPeerConnectionHandler(
43 blink::WebRTCPeerConnectionHandlerClient* client) override;
44 blink::WebMIDIAccessor* OverrideCreateMIDIAccessor(
45 blink::WebMIDIAccessorClient* client) override;
46 blink::WebAudioDevice* OverrideCreateAudioDevice(double sample_rate) override;
47 blink::WebClipboard* OverrideWebClipboard() override;
48 blink::WebThemeEngine* OverrideThemeEngine() override;
49 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
50 RenderFrame* render_frame) override;
51 scoped_ptr<MediaStreamRendererFactory> CreateMediaStreamRendererFactory()
52 override;
54 private:
55 void WebTestProxyCreated(RenderView* render_view,
56 test_runner::WebTestProxyBase* proxy);
58 scoped_ptr<LayoutTestRenderProcessObserver> shell_observer_;
59 scoped_ptr<MockWebClipboardImpl> clipboard_;
62 } // namespace content
64 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H_