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 "content/public/renderer/content_renderer_client.h" | 10 #include "content/public/renderer/content_renderer_client.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 class WebFrame; | 13 class WebFrame; |
14 class WebPlugin; | 14 class WebPlugin; |
15 struct WebPluginParams; | 15 struct WebPluginParams; |
16 } | 16 } |
17 | 17 |
| 18 namespace web_cache { |
| 19 class WebCacheRenderProcessObserver; |
| 20 } |
| 21 |
18 namespace content { | 22 namespace content { |
19 | 23 |
20 class MockWebClipboardImpl; | 24 class MockWebClipboardImpl; |
21 class ShellRenderProcessObserver; | 25 class ShellRenderProcessObserver; |
22 class WebTestProxyBase; | 26 class WebTestProxyBase; |
23 | 27 |
24 class ShellContentRendererClient : public ContentRendererClient { | 28 class ShellContentRendererClient : public ContentRendererClient { |
25 public: | 29 public: |
26 ShellContentRendererClient(); | 30 ShellContentRendererClient(); |
27 virtual ~ShellContentRendererClient(); | 31 virtual ~ShellContentRendererClient(); |
(...skipping 18 matching lines...) Expand all Loading... |
46 double sample_rate) OVERRIDE; | 50 double sample_rate) OVERRIDE; |
47 virtual blink::WebClipboard* OverrideWebClipboard() OVERRIDE; | 51 virtual blink::WebClipboard* OverrideWebClipboard() OVERRIDE; |
48 virtual blink::WebThemeEngine* OverrideThemeEngine() OVERRIDE; | 52 virtual blink::WebThemeEngine* OverrideThemeEngine() OVERRIDE; |
49 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url) OVERRIDE; | 53 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url) OVERRIDE; |
50 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url) OVERRIDE; | 54 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url) OVERRIDE; |
51 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; | 55 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; |
52 | 56 |
53 private: | 57 private: |
54 void WebTestProxyCreated(RenderView* render_view, WebTestProxyBase* proxy); | 58 void WebTestProxyCreated(RenderView* render_view, WebTestProxyBase* proxy); |
55 | 59 |
| 60 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; |
56 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 61 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
57 scoped_ptr<MockWebClipboardImpl> clipboard_; | 62 scoped_ptr<MockWebClipboardImpl> clipboard_; |
58 }; | 63 }; |
59 | 64 |
60 } // namespace content | 65 } // namespace content |
61 | 66 |
62 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 67 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |