1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_
6 #define EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_
10 // A set of extension groups for use with blink::registerExtension and
11 // WebFrame::ExecuteScriptInNewWorld to control which extensions get loaded
12 // into which contexts.
13 enum ExtensionGroups
{
14 // Use this to mark extensions to be loaded into content scripts only.
15 EXTENSION_GROUP_CONTENT_SCRIPTS
= 1,
17 // Use this in an isolated world for internal Chrome Translate.
18 // No extension APIs are available.
19 EXTENSION_GROUP_INTERNAL_TRANSLATE_SCRIPTS
= 2,
22 } // namespace extensions
24 #endif // EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_