Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / common / dom_action_types.h
blob10bab3ebd5cb6ca9e6dd22618ae18933ec5e4118
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_COMMON_DOM_ACTION_TYPES_H_
6 #define EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_
8 namespace extensions {
10 struct DomActionType {
11 // These values should not be changed. Append any additional values to the
12 // end with sequential numbers.
13 enum Type {
14 GETTER = 0, // For Content Script DOM manipulations
15 SETTER = 1, // For Content Script DOM manipulations
16 METHOD = 2, // For Content Script DOM manipulations
17 INSERTED = 3, // For when Content Scripts are added to pages
18 XHR = 4, // When an extension core sends an XHR
19 WEBREQUEST = 5, // When a page request is modified with the WebRequest API
20 MODIFIED = 6, // For legacy, also used as a catch-all
24 } // namespace extensions
26 #endif // EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_