• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_
6 #define EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_
7 
8 namespace extensions {
9 
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
21   };
22 };
23 
24 }  // namespace extensions
25 
26 #endif  // EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_
27