Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /chromium /src /refs/heads/main /. /ipc /message_filter_router.h
blob: 84fd39cb2c735bea862993b839e6a4096753bb28 [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.
#ifndef IPC_MESSAGE_FILTER_ROUTER_H_
#define IPC_MESSAGE_FILTER_ROUTER_H_
#include<array>
#include<vector>
#include"base/memory/raw_ptr.h"
#include"ipc/ipc_message_start.h"
namespace IPC{
classMessage;
classMessageFilter;
classMessageFilterRouter{
public:
typedef std::vector<raw_ptr<MessageFilter,VectorExperimental>>
MessageFilters;
MessageFilterRouter();
~MessageFilterRouter();
voidAddFilter(MessageFilter* filter);
voidRemoveFilter(MessageFilter* filter);
boolTryFilters(constMessage& message);
voidClear();
private:
// List of global and selective filters; a given filter will exist in either
// |message_global_filters_| OR |message_class_filters_|, but not both.
// Note that |message_global_filters_| will be given first offering of any
// given message. It's the filter implementer and installer's
// responsibility to ensure that a filter is either global or selective to
// ensure proper message filtering order.
MessageFilters global_filters_;
std::array<MessageFilters,LastIPCMsgStart> message_class_filters_;
};
}// namespace IPC
#endif// IPC_MESSAGE_FILTER_ROUTER_H_

[8]ページ先頭

©2009-2025 Movatter.jp