summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/extension_groups.h
blob: 531bba865f29390b8770006cff7f4f0557199202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_
#define EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_

namespace extensions {

// A set of extension groups for use with blink::registerExtension and
// WebFrame::ExecuteScriptInNewWorld to control which extensions get loaded
// into which contexts.
enum ExtensionGroups {
  // Use this to mark extensions to be loaded into content scripts only.
  EXTENSION_GROUP_CONTENT_SCRIPTS = 1,

  // Use this in an isolated world for internal Chrome Translate.
  // No extension APIs are available.
  EXTENSION_GROUP_INTERNAL_TRANSLATE_SCRIPTS = 2,
};

}  // namespace extensions

#endif  // EXTENSIONS_RENDERER_EXTENSION_GROUPS_H_