OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ | 5 #ifndef CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ |
6 #define CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ | 6 #define CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ |
7 | 7 |
| 8 #include "build/build_config.h" |
8 #include "content/public/common/isolated_world_ids.h" | 9 #include "content/public/common/isolated_world_ids.h" |
9 | 10 |
10 namespace chrome { | 11 namespace chrome { |
11 | 12 |
12 enum ChromeIsolatedWorldIDs { | 13 enum ChromeIsolatedWorldIDs { |
13 // Isolated world ID for Chrome Translate. | 14 // Isolated world ID for Chrome Translate. |
14 ISOLATED_WORLD_ID_TRANSLATE = content::ISOLATED_WORLD_ID_CONTENT_END + 1, | 15 ISOLATED_WORLD_ID_TRANSLATE = content::ISOLATED_WORLD_ID_CONTENT_END + 1, |
15 | 16 |
16 // Isolated world ID for internal Chrome features. | 17 // Isolated world ID for internal Chrome features. |
17 ISOLATED_WORLD_ID_CHROME_INTERNAL, | 18 ISOLATED_WORLD_ID_CHROME_INTERNAL, |
18 | 19 |
19 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
20 // Isolated world ID for AppleScript. | 21 // Isolated world ID for AppleScript. |
21 ISOLATED_WORLD_ID_APPLESCRIPT, | 22 ISOLATED_WORLD_ID_APPLESCRIPT, |
22 #endif // defined(OS_MACOSX) | 23 #endif // defined(OS_MACOSX) |
23 | 24 |
24 // Numbers for isolated worlds for extensions are set in | 25 // Numbers for isolated worlds for extensions are set in |
25 // extensions/renderer/script_injection.cc, and are are greater than or equal | 26 // extensions/renderer/script_injection.cc, and are are greater than or equal |
26 // to this number. | 27 // to this number. |
27 ISOLATED_WORLD_ID_EXTENSIONS | 28 ISOLATED_WORLD_ID_EXTENSIONS |
28 }; | 29 }; |
29 | 30 |
30 } // namespace chrome | 31 } // namespace chrome |
31 | 32 |
32 #endif // CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ | 33 #endif // CHROME_COMMON_CHROME_ISOLATED_WORLD_IDS_H_ |
OLD | NEW |