One way to pass data between multiple processes is to use Mojo IPC. The specifics of what that involves depends on the particular use case though. For example, data that's associated with a Blink "frame" can be passed over the blink.mojom.LocalFrame / blink.mojom.LocalFrameHost Mojo interfaces--but often, it's passed over an interface registered with the BrowserInterfaceBroker instead.
Shared memory is another possibility; however, the shared memory region itself still needs to be passed over IPC, and shared memory itself has sharp edges, since it requires some way of synchronizing (with locks and/or not-quite-standards-compliant use of atomics), careful consideration of time-of-check time-of-use races, potential info leaks with struct padding, et cetera.
Daniel