Commit 0f5259c3 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

docs: link passkey pattern to chromium base impl

Bug: None
Change-Id: Ideec0f3a60319eee3354642074ff3be7d078b440
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1751827
Auto-Submit: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686410}
parent 2b00e219
# The Passkey Pattern
For the Chromium implementation of this pattern, see
[//base/util/type_safety/pass_key.h].
The Passkey pattern is used when you need to expose a subset of a class's
methods to another class in a more granular way than simply friending the other
class. In essence, it involves creating a "passkey" class that can only be
......@@ -45,3 +48,5 @@ are used to pass in the Passkey object.
It is encouraged to leave the `BarPasskey` parameter unnamed to reinforce that it
carries no semantic information and is not actually used for anything.
[//base/util/type_safety/pass_key.h]: ../../base/util/type_safety/pass_key.h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment