| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebFrame; | 14 class WebFrame; |
| 15 class WebPlugin; | 15 class WebPlugin; |
| 16 struct WebPluginParams; | 16 struct WebPluginParams; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace WebTestRunner { | 19 namespace WebTestRunner { |
| 20 class WebTestProxyBase; | 20 class WebTestProxyBase; |
| 21 class WebUserMediaClientMock; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace webkit_glue { | 24 namespace webkit_glue { |
| 24 class MockWebHyphenator; | 25 class MockWebHyphenator; |
| 25 } | 26 } |
| 26 | 27 |
| 28 namespace webkit_support { |
| 29 class TestMediaStreamClient; |
| 30 } |
| 31 |
| 27 class MockWebClipboardImpl; | 32 class MockWebClipboardImpl; |
| 28 class TestShellWebMimeRegistryImpl; | 33 class TestShellWebMimeRegistryImpl; |
| 29 | 34 |
| 30 namespace content { | 35 namespace content { |
| 31 | 36 |
| 32 class ShellRenderProcessObserver; | 37 class ShellRenderProcessObserver; |
| 33 | 38 |
| 34 class ShellContentRendererClient : public ContentRendererClient { | 39 class ShellContentRendererClient : public ContentRendererClient { |
| 35 public: | 40 public: |
| 36 ShellContentRendererClient(); | 41 ShellContentRendererClient(); |
| 37 virtual ~ShellContentRendererClient(); | 42 virtual ~ShellContentRendererClient(); |
| 38 | 43 |
| 39 void LoadHyphenDictionary(base::PlatformFile dict_file); | 44 void LoadHyphenDictionary(base::PlatformFile dict_file); |
| 40 | 45 |
| 41 // ContentRendererClient implementation. | 46 // ContentRendererClient implementation. |
| 42 virtual void RenderThreadStarted() OVERRIDE; | 47 virtual void RenderThreadStarted() OVERRIDE; |
| 43 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 48 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
| 44 virtual bool OverrideCreatePlugin( | 49 virtual bool OverrideCreatePlugin( |
| 45 RenderView* render_view, | 50 RenderView* render_view, |
| 46 WebKit::WebFrame* frame, | 51 WebKit::WebFrame* frame, |
| 47 const WebKit::WebPluginParams& params, | 52 const WebKit::WebPluginParams& params, |
| 48 WebKit::WebPlugin** plugin) OVERRIDE; | 53 WebKit::WebPlugin** plugin) OVERRIDE; |
| 49 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( | 54 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
| 50 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; | 55 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; |
| 56 virtual WebKit::WebUserMediaClient* OverrideUserMediaClient() OVERRIDE; |
| 57 virtual webkit_media::MediaStreamClient* OverrideMediaStreamClient() OVERRIDE; |
| 51 virtual WebKit::WebRTCPeerConnectionHandler* | 58 virtual WebKit::WebRTCPeerConnectionHandler* |
| 52 OverrideCreateWebRTCPeerConnectionHandler( | 59 OverrideCreateWebRTCPeerConnectionHandler( |
| 53 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; | 60 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; |
| 54 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; | 61 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; |
| 55 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry() OVERRIDE; | 62 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry() OVERRIDE; |
| 56 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; | 63 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; |
| 57 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; | 64 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; |
| 58 virtual bool AllowBrowserPlugin( | 65 virtual bool AllowBrowserPlugin( |
| 59 WebKit::WebPluginContainer* container) const OVERRIDE; | 66 WebKit::WebPluginContainer* container) const OVERRIDE; |
| 60 | 67 |
| 61 private: | 68 private: |
| 62 void WebTestProxyCreated(RenderView* render_view, | 69 void WebTestProxyCreated(RenderView* render_view, |
| 63 WebTestRunner::WebTestProxyBase* proxy); | 70 WebTestRunner::WebTestProxyBase* proxy); |
| 64 | 71 |
| 65 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 72 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
| 66 scoped_ptr<MockWebClipboardImpl> clipboard_; | 73 scoped_ptr<MockWebClipboardImpl> clipboard_; |
| 67 scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; | 74 scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; |
| 68 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; | 75 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; |
| 76 scoped_ptr<WebTestRunner::WebUserMediaClientMock> user_media_client_; |
| 77 scoped_ptr<webkit_support::TestMediaStreamClient> media_stream_client_; |
| 69 }; | 78 }; |
| 70 | 79 |
| 71 } // namespace content | 80 } // namespace content |
| 72 | 81 |
| 73 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 82 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |