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 blink { | 13 namespace blink { |
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 content { | 23 namespace content { |
24 | 24 |
25 class MockWebClipboardImpl; | 25 class MockWebClipboardImpl; |
26 class ShellRenderProcessObserver; | 26 class ShellRenderProcessObserver; |
27 | 27 |
28 class ShellContentRendererClient : public ContentRendererClient { | 28 class ShellContentRendererClient : public ContentRendererClient { |
29 public: | 29 public: |
30 static ShellContentRendererClient* Get(); | |
31 | |
32 ShellContentRendererClient(); | 30 ShellContentRendererClient(); |
33 virtual ~ShellContentRendererClient(); | 31 virtual ~ShellContentRendererClient(); |
34 | 32 |
35 // ContentRendererClient implementation. | 33 // ContentRendererClient implementation. |
36 virtual void RenderThreadStarted() OVERRIDE; | 34 virtual void RenderThreadStarted() OVERRIDE; |
37 virtual void RenderFrameCreated(RenderFrame* render_frame) OVERRIDE; | 35 virtual void RenderFrameCreated(RenderFrame* render_frame) OVERRIDE; |
38 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 36 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
39 virtual bool OverrideCreatePlugin( | 37 virtual bool OverrideCreatePlugin( |
40 RenderFrame* render_frame, | 38 RenderFrame* render_frame, |
41 blink::WebFrame* frame, | 39 blink::WebFrame* frame, |
(...skipping 17 matching lines...) Expand all Loading... |
59 void WebTestProxyCreated(RenderView* render_view, | 57 void WebTestProxyCreated(RenderView* render_view, |
60 WebTestRunner::WebTestProxyBase* proxy); | 58 WebTestRunner::WebTestProxyBase* proxy); |
61 | 59 |
62 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 60 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
63 scoped_ptr<MockWebClipboardImpl> clipboard_; | 61 scoped_ptr<MockWebClipboardImpl> clipboard_; |
64 }; | 62 }; |
65 | 63 |
66 } // namespace content | 64 } // namespace content |
67 | 65 |
68 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 66 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |