OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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/notify_done_forwarder.h" |
| 6 |
| 7 #include "content/shell/shell_messages.h" |
| 8 #include "content/shell/webkit_test_controller.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder); |
| 13 |
| 14 NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents) |
| 15 : WebContentsObserver(web_contents) {} |
| 16 |
| 17 NotifyDoneForwarder::~NotifyDoneForwarder() {} |
| 18 |
| 19 bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) { |
| 20 bool handled = true; |
| 21 IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message) |
| 22 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow, |
| 23 OnTestFinishedInSecondaryWindow) |
| 24 IPC_MESSAGE_UNHANDLED(handled = false) |
| 25 IPC_END_MESSAGE_MAP() |
| 26 return handled; |
| 27 } |
| 28 |
| 29 void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() { |
| 30 WebKitTestController::Get()->TestFinishedInSecondaryWindow(); |
| 31 } |
| 32 |
| 33 } // namespace content |
OLD | NEW |