Those would be IO (input/output) pins on your Arduino or other MCU, which you would program so that the one controlling the Vbatt mosfet is high when you want to run on battery; then when you want to switch to the adapter you pull the Vbatt mosfet low, turning it off, and within about 1ms drive the Vcc mosfet high, allowing power from your adapter to power your chip.
Diodes would be simpler, but the 0.6V drop is inefficient. Relays are also a viable solution, but in this circuit would work similarly to mosfets, so it's kind of moot.
I'm getting the impression that you don't know much about electronics.