| 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 #include "content/shell/shell_content_renderer_client.h" | 5 #include "content/shell/shell_content_renderer_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/shell/layout_test_controller.h" | 8 #include "content/shell/layout_test_controller.h" |
| 9 #include "content/shell/shell_render_process_observer.h" | 9 #include "content/shell/shell_render_process_observer.h" |
| 10 #include "content/shell/shell_switches.h" | 10 #include "content/shell/shell_switches.h" |
| 11 #include "v8/include/v8.h" | 11 #include "v8/include/v8.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 ShellContentRendererClient::ShellContentRendererClient() { | 15 ShellContentRendererClient::ShellContentRendererClient() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 ShellContentRendererClient::~ShellContentRendererClient() { | 18 ShellContentRendererClient::~ShellContentRendererClient() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 void ShellContentRendererClient::RenderThreadStarted() { | 21 void ShellContentRendererClient::RenderThreadStarted() { |
| 22 shell_observer_.reset(new ShellRenderProcessObserver()); | 22 shell_observer_.reset(new ShellRenderProcessObserver()); |
| 23 } | 23 } |
| 24 | 24 |
| 25 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { | 25 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { |
| 26 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) | 26 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) |
| 27 return; | 27 return; |
| 28 | 28 |
| 29 new content::LayoutTestController(render_view); | 29 new LayoutTestController(render_view); |
| 30 } | 30 } |
| 31 | 31 |
| 32 } // namespace content | 32 } // namespace content |
| OLD | NEW |