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 WebKit { | 12 namespace WebKit { |
13 class WebFrame; | 13 class WebFrame; |
14 class WebPlugin; | 14 class WebPlugin; |
15 struct WebPluginParams; | 15 struct WebPluginParams; |
16 } | 16 } |
17 | 17 |
18 namespace WebTestRunner { | |
19 class WebTestProxyBase; | |
20 } | |
21 | |
22 namespace content { | 18 namespace content { |
23 | 19 |
24 class RenderView; | |
25 class ShellRenderProcessObserver; | 20 class ShellRenderProcessObserver; |
26 | 21 |
27 class ShellContentRendererClient : public ContentRendererClient { | 22 class ShellContentRendererClient : public ContentRendererClient { |
28 public: | 23 public: |
29 ShellContentRendererClient(); | 24 ShellContentRendererClient(); |
30 virtual ~ShellContentRendererClient(); | 25 virtual ~ShellContentRendererClient(); |
31 virtual void RenderThreadStarted() OVERRIDE; | 26 virtual void RenderThreadStarted() OVERRIDE; |
32 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 27 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
33 virtual bool OverrideCreatePlugin( | 28 virtual bool OverrideCreatePlugin( |
34 RenderView* render_view, | 29 RenderView* render_view, |
35 WebKit::WebFrame* frame, | 30 WebKit::WebFrame* frame, |
36 const WebKit::WebPluginParams& params, | 31 const WebKit::WebPluginParams& params, |
37 WebKit::WebPlugin** plugin) OVERRIDE; | 32 WebKit::WebPlugin** plugin) OVERRIDE; |
38 virtual bool WillSendRequest(WebKit::WebFrame* frame, | |
39 PageTransition transition_type, | |
40 const GURL& url, | |
41 const GURL& first_party_for_cookies, | |
42 GURL* new_url) OVERRIDE; | |
43 | 33 |
44 private: | 34 private: |
45 scoped_ptr<ShellRenderProcessObserver> shell_observer_; | 35 scoped_ptr<ShellRenderProcessObserver> shell_observer_; |
46 }; | 36 }; |
47 | 37 |
48 } // namespace content | 38 } // namespace content |
49 | 39 |
50 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ | 40 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |