tree: c4936b885bd939cad48535fa0610e6937af3fb47 [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
third_party/blink/public/common/tokens/README.md

Tokens

Overview

This directory contains strongly-typed wrappers (using base::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: