Chromium Code Reviews| 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 } | 21 } |
| 22 | 22 |
| 23 namespace webkit_glue { | 23 namespace webkit_glue { |
| 24 class MockWebHyphenator; | 24 class MockWebHyphenator; |
| 25 } | 25 } |
| 26 | 26 |
| 27 class MockWebClipboardImpl; | 27 class MockWebClipboardImpl; |
| 28 class TestShellWebMimeRegistryImpl; | |
| 29 | 28 |
| 30 namespace content { | 29 namespace content { |
| 31 | 30 |
| 32 class ShellRenderProcessObserver; | 31 class ShellRenderProcessObserver; |
| 33 | 32 |
| 34 class ShellContentRendererClient : public ContentRendererClient { | 33 class ShellContentRendererClient : public ContentRendererClient { |
| 35 public: | 34 public: |
| 36 static ShellContentRendererClient* Get(); | 35 static ShellContentRendererClient* Get(); |
| 37 | 36 |
| 38 ShellContentRendererClient(); | 37 ShellContentRendererClient(); |
| 39 virtual ~ShellContentRendererClient(); | 38 virtual ~ShellContentRendererClient(); |
| 40 | 39 |
| 41 void LoadHyphenDictionary(base::PlatformFile dict_file); | 40 void LoadHyphenDictionary(base::PlatformFile dict_file); |
| 42 | 41 |
| 43 // ContentRendererClient implementation. | 42 // ContentRendererClient implementation. |
| 44 virtual void RenderThreadStarted() OVERRIDE; | 43 virtual void RenderThreadStarted() OVERRIDE; |
| 45 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 44 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
| 46 virtual bool OverrideCreatePlugin( | 45 virtual bool OverrideCreatePlugin( |
| 47 RenderView* render_view, | 46 RenderView* render_view, |
| 48 WebKit::WebFrame* frame, | 47 WebKit::WebFrame* frame, |
| 49 const WebKit::WebPluginParams& params, | 48 const WebKit::WebPluginParams& params, |
| 50 WebKit::WebPlugin** plugin) OVERRIDE; | 49 WebKit::WebPlugin** plugin) OVERRIDE; |
| 51 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( | 50 virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
| 52 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; | 51 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; |
| 53 virtual WebKit::WebRTCPeerConnectionHandler* | 52 virtual WebKit::WebRTCPeerConnectionHandler* |
| 54 OverrideCreateWebRTCPeerConnectionHandler( | 53 OverrideCreateWebRTCPeerConnectionHandler( |
| 55 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; | 54 WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; |
| 56 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; | 55 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; |
| 57 virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry() OVERRIDE; | |
|
jochen (gone - plz use gerrit)
2013/06/20 10:39:44
afaik content shell was the only consumer of this
scherkus (not reviewing)
2013/06/20 22:28:42
Done.
| |
| 58 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; | 56 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; |
| 59 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; | 57 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; |
| 60 virtual bool AllowBrowserPlugin( | 58 virtual bool AllowBrowserPlugin( |
| 61 WebKit::WebPluginContainer* container) const OVERRIDE; | 59 WebKit::WebPluginContainer* container) const OVERRIDE; |
| 62 | 60 |
| 63 private: | 61 private: |
| 64 void WebTestProxyCreated(RenderView* render_view, | 62 void WebTestProxyCreated(RenderView* render_view, |
| 65 WebTestRunner::WebTestProxyBase* proxy); | 63 WebTestRunner::WebTestProxyBase* proxy); |
| 66 | 64 |
| 67 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 65 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
| 68 scoped_ptr<MockWebClipboardImpl> clipboard_; | 66 scoped_ptr<MockWebClipboardImpl> clipboard_; |
| 69 scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; | |
| 70 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; | 67 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; |
| 71 }; | 68 }; |
| 72 | 69 |
| 73 } // namespace content | 70 } // namespace content |
| 74 | 71 |
| 75 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 72 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |