tree: bca97235b1681b9fa494f1894697ddf6853eb413 [path history] [tgz]
  1. BUILD.gn
  2. multi_token.h
  3. multi_token_internal.h
  4. OWNERS
  5. README.md
  6. token_mojom_traits_helper.h
  7. tokens.h
  8. tokens_mojom_traits.h
chromium/src/third_party/blink/public/common/tokens/README.md

Tokens

Overview

This directory contains strongly-typed wrappers (using util::TokenType<...>) of base::UnguessableToken for tokens that are commonly passed between browsers and renderers. The strong typing is to prevent type confusion as these tokens are passed around. To support strong typing through the entire stack (including IPC) these tokens additionally include content/ and blink/ specific typemaps, as well as Mojo struct definitions.

Adding a new token

Suppose you want to add a new token type. You would do the following: