OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H
_ | 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
_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIENT_H
_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "content/shell/renderer/shell_content_renderer_client.h" | 10 #include "content/shell/renderer/shell_content_renderer_client.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class LayoutTestRenderThreadObserver; | 14 class LayoutTestRenderThreadObserver; |
15 class MockWebClipboardImpl; | 15 class MockWebClipboardImpl; |
16 | 16 |
17 class LayoutTestContentRendererClient : public ShellContentRendererClient { | 17 class LayoutTestContentRendererClient : public ShellContentRendererClient { |
18 public: | 18 public: |
19 LayoutTestContentRendererClient(); | 19 LayoutTestContentRendererClient(); |
20 ~LayoutTestContentRendererClient() override; | 20 ~LayoutTestContentRendererClient() override; |
21 | 21 |
22 // ShellContentRendererClient implementation. | 22 // ShellContentRendererClient implementation. |
23 void RenderThreadStarted() override; | 23 void RenderThreadStarted() override; |
24 void RenderFrameCreated(RenderFrame* render_frame) override; | 24 void RenderFrameCreated(RenderFrame* render_frame) override; |
25 void RenderViewCreated(RenderView* render_view) override; | 25 void RenderViewCreated(RenderView* render_view) override; |
26 std::unique_ptr<blink::WebMediaStreamCenter> | 26 blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
27 OverrideCreateWebMediaStreamCenter( | |
28 blink::WebMediaStreamCenterClient* client) override; | 27 blink::WebMediaStreamCenterClient* client) override; |
29 std::unique_ptr<blink::WebRTCPeerConnectionHandler> | 28 blink::WebRTCPeerConnectionHandler* OverrideCreateWebRTCPeerConnectionHandler( |
30 OverrideCreateWebRTCPeerConnectionHandler( | |
31 blink::WebRTCPeerConnectionHandlerClient* client) override; | 29 blink::WebRTCPeerConnectionHandlerClient* client) override; |
32 std::unique_ptr<blink::WebMIDIAccessor> OverrideCreateMIDIAccessor( | 30 blink::WebMIDIAccessor* OverrideCreateMIDIAccessor( |
33 blink::WebMIDIAccessorClient* client) override; | 31 blink::WebMIDIAccessorClient* client) override; |
34 std::unique_ptr<blink::WebAudioDevice> OverrideCreateAudioDevice( | 32 blink::WebAudioDevice* OverrideCreateAudioDevice( |
35 const blink::WebAudioLatencyHint& latency_hint) override; | 33 const blink::WebAudioLatencyHint& latency_hint) override; |
36 blink::WebClipboard* OverrideWebClipboard() override; | 34 blink::WebClipboard* OverrideWebClipboard() override; |
37 blink::WebThemeEngine* OverrideThemeEngine() override; | 35 blink::WebThemeEngine* OverrideThemeEngine() override; |
38 std::unique_ptr<MediaStreamRendererFactory> CreateMediaStreamRendererFactory() | 36 std::unique_ptr<MediaStreamRendererFactory> CreateMediaStreamRendererFactory() |
39 override; | 37 override; |
40 std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile() override; | 38 std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile() override; |
41 void DidInitializeWorkerContextOnWorkerThread( | 39 void DidInitializeWorkerContextOnWorkerThread( |
42 v8::Local<v8::Context> context) override; | 40 v8::Local<v8::Context> context) override; |
43 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; | 41 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; |
44 | 42 |
45 private: | 43 private: |
46 std::unique_ptr<LayoutTestRenderThreadObserver> shell_observer_; | 44 std::unique_ptr<LayoutTestRenderThreadObserver> shell_observer_; |
47 std::unique_ptr<MockWebClipboardImpl> clipboard_; | 45 std::unique_ptr<MockWebClipboardImpl> clipboard_; |
48 }; | 46 }; |
49 | 47 |
50 } // namespace content | 48 } // namespace content |
51 | 49 |
52 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIEN
T_H_ | 50 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_RENDERER_CLIEN
T_H_ |
OLD | NEW |