OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/shell/shell_render_view_host_observer.h" |
| 6 |
| 7 #include <iostream> |
| 8 |
| 9 #include "content/shell/shell_messages.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 ShellRenderViewHostObserver::ShellRenderViewHostObserver( |
| 14 RenderViewHost* render_view_host) |
| 15 : RenderViewHostObserver(render_view_host) { |
| 16 } |
| 17 |
| 18 ShellRenderViewHostObserver::~ShellRenderViewHostObserver() { |
| 19 } |
| 20 |
| 21 bool ShellRenderViewHostObserver::OnMessageReceived( |
| 22 const IPC::Message& message) { |
| 23 bool handled = true; |
| 24 IPC_BEGIN_MESSAGE_MAP(ShellRenderViewHostObserver, message) |
| 25 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TextDump, OnTextDump) |
| 26 IPC_MESSAGE_UNHANDLED(handled = false) |
| 27 IPC_END_MESSAGE_MAP() |
| 28 return handled; |
| 29 } |
| 30 |
| 31 void ShellRenderViewHostObserver::OnTextDump(const std::string& dump) { |
| 32 std::cout << dump; |
| 33 } |
| 34 |
| 35 } // namespace content |
OLD | NEW |