| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| 31 class ShellMediaStreamClient; | |
| 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_media::MediaStreamClient* OverrideCreateMediaStreamClient() | |
| 57 OVERRIDE; | |
| 58 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( | 55 virtual WebKit::WebMIDIAccessor* OverrideCreateMIDIAccessor( |
| 59 WebKit::WebMIDIAccessorClient* client) OVERRIDE; | 56 WebKit::WebMIDIAccessorClient* client) OVERRIDE; |
| 60 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; | 57 virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; |
| 61 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; | 58 virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; |
| 62 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; | 59 virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; |
| 63 virtual bool AllowBrowserPlugin( | 60 virtual bool AllowBrowserPlugin( |
| 64 WebKit::WebPluginContainer* container) const OVERRIDE; | 61 WebKit::WebPluginContainer* container) const OVERRIDE; |
| 65 | 62 |
| 66 private: | 63 private: |
| 67 void WebTestProxyCreated(RenderView* render_view, | 64 void WebTestProxyCreated(RenderView* render_view, |
| 68 WebTestRunner::WebTestProxyBase* proxy); | 65 WebTestRunner::WebTestProxyBase* proxy); |
| 69 | 66 |
| 70 scoped_ptr<ShellMediaStreamClient> shell_media_stream_client_; | |
| 71 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 67 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
| 72 scoped_ptr<MockWebClipboardImpl> clipboard_; | 68 scoped_ptr<MockWebClipboardImpl> clipboard_; |
| 73 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; | 69 scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; |
| 74 }; | 70 }; |
| 75 | 71 |
| 76 } // namespace content | 72 } // namespace content |
| 77 | 73 |
| 78 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 74 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |