Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: content/shell/shell_content_renderer_client.h

Issue 11416177: [content shell] change how the main render view is picked for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 { 18 namespace WebTestRunner {
19 class WebTestProxyBase; 19 class WebTestProxyBase;
20 } 20 }
21 21
22 namespace content { 22 namespace content {
23 23
24 class RenderView; 24 class RenderView;
25 class ShellRenderProcessObserver; 25 class ShellRenderProcessObserver;
26 class WebKitTestRunner;
27 26
28 class ShellContentRendererClient : public ContentRendererClient { 27 class ShellContentRendererClient : public ContentRendererClient {
29 public: 28 public:
30 ShellContentRendererClient(); 29 ShellContentRendererClient();
31 virtual ~ShellContentRendererClient(); 30 virtual ~ShellContentRendererClient();
32 virtual void RenderThreadStarted() OVERRIDE; 31 virtual void RenderThreadStarted() OVERRIDE;
33 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
34 virtual bool OverrideCreatePlugin( 32 virtual bool OverrideCreatePlugin(
35 RenderView* render_view, 33 RenderView* render_view,
36 WebKit::WebFrame* frame, 34 WebKit::WebFrame* frame,
37 const WebKit::WebPluginParams& params, 35 const WebKit::WebPluginParams& params,
38 WebKit::WebPlugin** plugin) OVERRIDE; 36 WebKit::WebPlugin** plugin) OVERRIDE;
39 37
40 private: 38 private:
41 void WebTestProxyCreated(WebTestRunner::WebTestProxyBase* proxy); 39 void WebTestProxyCreated(RenderView* render_view,
40 WebTestRunner::WebTestProxyBase* proxy);
42 41
43 scoped_ptr<ShellRenderProcessObserver> shell_observer_; 42 scoped_ptr<ShellRenderProcessObserver> shell_observer_;
44 WebKitTestRunner* latest_test_runner_;
45 }; 43 };
46 44
47 } // namespace content 45 } // namespace content
48 46
49 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 47 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/shell/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698