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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/content_renderer_client.h"
13 class WebCacheRenderProcessObserver
;
18 class ShellContentRendererClient
: public ContentRendererClient
{
20 ShellContentRendererClient();
21 ~ShellContentRendererClient() override
;
23 // ContentRendererClient implementation.
24 void RenderThreadStarted() override
;
25 void RenderViewCreated(RenderView
* render_view
) override
;
27 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we
28 // need that outside of layout tests?
29 bool IsPluginAllowedToUseCompositorAPI(const GURL
& url
) override
;
30 bool IsPluginAllowedToUseDevChannelAPIs() override
;
33 scoped_ptr
<web_cache::WebCacheRenderProcessObserver
> web_cache_observer_
;
36 } // namespace content
38 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_