dom_action_types.h 969 B

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