blob: 35757b7069eef7a34770f407ea145e9493d8b28d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/shell/browser/notify_done_forwarder.h"
#include "content/shell/browser/blink_test_controller.h"
#include "content/shell/common/shell_messages.h"
namespace content {
DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder);
NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents)
: WebContentsObserver(web_contents) {}
NotifyDoneForwarder::~NotifyDoneForwarder() {}
bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message)
IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow,
OnTestFinishedInSecondaryWindow)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
}
void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() {
BlinkTestController::Get()->TestFinishedInSecondaryWindow();
}
} // namespace content
|