class ForwardMetadata

Defined at line 28 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

Public Methods

ForwardMetadata All ()

Creates a ForwardMetadata object in which all of the available metadata from the parent(s)

are forwarded.

Defined at line 41 of file ../../sdk/lib/driver/compat/cpp/device_server.cc

ForwardMetadata None ()

Creates a ForwardMetadata object in which none of the available metadata from the parent(s)

are forwarded.

Defined at line 43 of file ../../sdk/lib/driver/compat/cpp/device_server.cc

ForwardMetadata Some (std::unordered_set<MetadataKey> filter)

Creates a ForwardMetadata object in which some of the available metadata from the parent(s)

are forwarded. The given filter set must not be empty.

The given set is used as a filter when looking through all of the available metadata to the

driver. This means if a given metadata key is not found through the parent(s), it will be

ignored.

Defined at line 47 of file ../../sdk/lib/driver/compat/cpp/device_server.cc

void ForwardMetadata (std::unordered_set<MetadataKey> filter)

Deprecated constructor. Use All(), Some(), None() instead.

TODO(https://fxbug.dev/42086090): Remove once all usages are migrated

Defined at line 48 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

bool empty ()

Returns true when there's nothing to forward.

Defined at line 52 of file ../../sdk/lib/driver/compat/cpp/device_server.cc

bool should_forward (MetadataKey key)

Returns true if the given key meets the requirements for forwarding.

Defined at line 54 of file ../../sdk/lib/driver/compat/cpp/device_server.cc