chrome_isolated_world_ids.h 973 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2015 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. #ifndef CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_
  5. #define CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_
  6. #include "build/build_config.h"
  7. #include "content/public/common/isolated_world_ids.h"
  8. enum ChromeIsolatedWorldIDs {
  9. // Isolated world ID for Chrome Translate.
  10. ISOLATED_WORLD_ID_TRANSLATE = content::ISOLATED_WORLD_ID_CONTENT_END + 1,
  11. // Isolated world ID for internal Chrome features.
  12. ISOLATED_WORLD_ID_CHROME_INTERNAL,
  13. #if BUILDFLAG(IS_MAC)
  14. // Isolated world ID for AppleScript.
  15. ISOLATED_WORLD_ID_APPLESCRIPT,
  16. #endif // BUILDFLAG(IS_MAC)
  17. // Numbers for isolated worlds for extensions are set in
  18. // extensions/renderer/script_injection.cc, and are are greater than or equal
  19. // to this number.
  20. ISOLATED_WORLD_ID_EXTENSIONS
  21. };
  22. #endif // CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_