OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 | 9 |
10 // A set of extension groups for use with blink::registerExtension and | 10 // A set of extension groups for use with blink::registerExtension and |
11 // WebFrame::ExecuteScriptInNewWorld to control which extensions get loaded | 11 // WebFrame::ExecuteScriptInNewWorld to control which extensions get loaded |
12 // into which contexts. | 12 // into which contexts. |
13 enum ExtensionGroups { | 13 enum ExtensionGroups { |
14 // Use this to mark extensions to be loaded into content scripts only. | 14 // Use this to mark extensions to be loaded into content scripts only. |
15 EXTENSION_GROUP_CONTENT_SCRIPTS = 1, | 15 EXTENSION_GROUP_CONTENT_SCRIPTS = 1, |
16 | 16 |
17 // Use this in an isolated world for internal Chrome Translate. | 17 // Use this in an isolated world for internal Chrome Translate. |
18 // No extension APIs are available. | 18 // No extension APIs are available. |
19 EXTENSION_GROUP_INTERNAL_TRANSLATE_SCRIPTS = 2, | 19 EXTENSION_GROUP_INTERNAL_TRANSLATE_SCRIPTS = 2, |
20 }; | 20 }; |
21 | 21 |
22 } // namespace extensions | 22 } // namespace extensions |
23 | 23 |
24 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_ | 24 #endif // EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_ |
OLD | NEW |