diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 15:29:58 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 15:29:58 +0000 |
commit | f7a4e3b92572a5a657262566de380c76d3490173 (patch) | |
tree | ecc97a3ea839574a0435c191833751f39549d8d0 /content/shell/renderer/shell_content_renderer_client.h | |
parent | a2a4e5f9094ae7e85d3662160ecfa253731ebb32 (diff) | |
download | chromium_src-f7a4e3b92572a5a657262566de380c76d3490173.zip chromium_src-f7a4e3b92572a5a657262566de380c76d3490173.tar.gz chromium_src-f7a4e3b92572a5a657262566de380c76d3490173.tar.bz2 |
[content shell] move renderer specific code into a sub directory
BUG=180021
TBR=jam@chromium.org
R=marja@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14912003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/renderer/shell_content_renderer_client.h')
-rw-r--r-- | content/shell/renderer/shell_content_renderer_client.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/content/shell/renderer/shell_content_renderer_client.h b/content/shell/renderer/shell_content_renderer_client.h new file mode 100644 index 0000000..857b5c9 --- /dev/null +++ b/content/shell/renderer/shell_content_renderer_client.h @@ -0,0 +1,75 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ +#define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ + +#include "base/compiler_specific.h" +#include "base/memory/scoped_ptr.h" +#include "base/platform_file.h" +#include "content/public/renderer/content_renderer_client.h" + +namespace WebKit { +class WebFrame; +class WebPlugin; +struct WebPluginParams; +} + +namespace WebTestRunner { +class WebTestProxyBase; +} + +namespace webkit_glue { +class MockWebHyphenator; +} + +class MockWebClipboardImpl; +class TestShellWebMimeRegistryImpl; + +namespace content { + +class ShellRenderProcessObserver; + +class ShellContentRendererClient : public ContentRendererClient { + public: + static ShellContentRendererClient* Get(); + + ShellContentRendererClient(); + virtual ~ShellContentRendererClient(); + + void LoadHyphenDictionary(base::PlatformFile dict_file); + + // ContentRendererClient implementation. + virtual void RenderThreadStarted() OVERRIDE; + virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; + virtual bool OverrideCreatePlugin( + RenderView* render_view, + WebKit::WebFrame* frame, + const WebKit::WebPluginParams& params, + WebKit::WebPlugin** plugin) OVERRIDE; + virtual WebKit::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( + WebKit::WebMediaStreamCenterClient* client) OVERRIDE; + virtual WebKit::WebRTCPeerConnectionHandler* + OverrideCreateWebRTCPeerConnectionHandler( + WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE; + virtual WebKit::WebClipboard* OverrideWebClipboard() OVERRIDE; + virtual WebKit::WebMimeRegistry* OverrideWebMimeRegistry() OVERRIDE; + virtual WebKit::WebHyphenator* OverrideWebHyphenator() OVERRIDE; + virtual WebKit::WebThemeEngine* OverrideThemeEngine() OVERRIDE; + virtual bool AllowBrowserPlugin( + WebKit::WebPluginContainer* container) const OVERRIDE; + + private: + void WebTestProxyCreated(RenderView* render_view, + WebTestRunner::WebTestProxyBase* proxy); + + scoped_ptr<ShellRenderProcessObserver> shell_observer_; + scoped_ptr<MockWebClipboardImpl> clipboard_; + scoped_ptr<TestShellWebMimeRegistryImpl> mime_registry_; + scoped_ptr<webkit_glue::MockWebHyphenator> hyphenator_; +}; + +} // namespace content + +#endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |