1 // Copyright 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.
5 #include "content/shell/browser/notify_done_forwarder.h"
7 #include "content/shell/browser/blink_test_controller.h"
8 #include "content/shell/common/shell_messages.h"
12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder
);
14 NotifyDoneForwarder::NotifyDoneForwarder(WebContents
* web_contents
)
15 : WebContentsObserver(web_contents
) {}
17 NotifyDoneForwarder::~NotifyDoneForwarder() {}
19 bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message
& message
) {
21 IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder
, message
)
22 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow
,
23 OnTestFinishedInSecondaryWindow
)
24 IPC_MESSAGE_UNHANDLED(handled
= false)
29 void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() {
30 BlinkTestController::Get()->TestFinishedInSecondaryWindow();
33 } // namespace content