blob: 7ca01565957b034920bdb2acd9d9152a645035ad [file] [log] [blame]
// Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_
#define CHROME_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_
namespace extensions {
// A set of extension groups for use with WebKit::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 // CHROME_RENDERER_EXTENSIONS_EXTENSION_GROUPS_H_