| 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_render_view_host_observer.h" | 5 #include "content/shell/shell_render_view_host_observer.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/public/browser/render_view_host.h" |
| 11 #include "content/shell/shell.h" | 11 #include "content/shell/shell.h" |
| 12 #include "content/shell/shell_messages.h" | 12 #include "content/shell/shell_messages.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 ShellRenderViewHostObserver::ShellRenderViewHostObserver( | 16 ShellRenderViewHostObserver::ShellRenderViewHostObserver( |
| 17 RenderViewHost* render_view_host) | 17 RenderViewHost* render_view_host) |
| 18 : RenderViewHostObserver(render_view_host), | 18 : RenderViewHostObserver(render_view_host), |
| 19 dump_child_frames_(false) { | 19 dump_child_frames_(false) { |
| 20 } | 20 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void ShellRenderViewHostObserver::OnDumpChildFramesAsText() { | 54 void ShellRenderViewHostObserver::OnDumpChildFramesAsText() { |
| 55 dump_child_frames_ = true; | 55 dump_child_frames_ = true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void ShellRenderViewHostObserver::OnWaitUntilDone() { | 58 void ShellRenderViewHostObserver::OnWaitUntilDone() { |
| 59 Shell* shell = Shell::FromRenderViewHost(render_view_host()); | 59 Shell* shell = Shell::FromRenderViewHost(render_view_host()); |
| 60 shell->set_wait_until_done(); | 60 shell->set_wait_until_done(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace content | 63 } // namespace content |
| OLD | NEW |