Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /chromium /src /refs/heads/main /. /ipc /ipc_security_test_util.cc
blob: 35ff187e79f0121d80a19ff65397753a58cb04b2 [file] [log] [blame] [edit]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include"ipc/ipc_security_test_util.h"
#include"base/functional/bind.h"
#include"base/functional/callback_helpers.h"
#include"base/run_loop.h"
#include"ipc/ipc_channel_proxy.h"
namespace IPC{
voidIpcSecurityTestUtil::PwnMessageReceived(ChannelProxy* channel,
const IPC::Message& message){
base::RunLoop run_loop;
base::OnceClosure inject_message= base::BindOnce(
base::IgnoreResult(&IPC::ChannelProxy::Context::OnMessageReceived),
channel->context(), message);
channel->context()->ipc_task_runner()->PostTaskAndReply(
FROM_HERE, std::move(inject_message), run_loop.QuitClosure());
run_loop.Run();
}
}// namespace IPC

[8]ページ先頭

©2009-2025 Movatter.jp