1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_IDENTIFIER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_IDENTIFIER_H_ 7 8 #include "chrome/browser/ui/webui/settings/chromeos/constants/routes.mojom.h" 9 #include "chrome/browser/ui/webui/settings/chromeos/constants/setting.mojom.h" 10 11 namespace chromeos { 12 namespace settings { 13 14 // Uniquely identifies a settings item (section, subpage, or setting). 15 union OsSettingsIdentifier { 16 mojom::Section section; 17 mojom::Subpage subpage; 18 mojom::Setting setting; 19 }; 20 21 } // namespace settings 22 } // namespace chromeos 23 24 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_IDENTIFIER_H_ 25