OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ | 5 #ifndef EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ |
6 #define EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ | 6 #define EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 | 9 |
10 struct DomActionType { | 10 struct DomActionType { |
11 // These values should not be changed. Append any additional values to the | 11 // These values should not be changed. Append any additional values to the |
12 // end with sequential numbers. | 12 // end with sequential numbers. |
13 enum Type { | 13 enum Type { |
14 GETTER = 0, // For Content Script DOM manipulations | 14 GETTER = 0, // For Content Script DOM manipulations |
15 SETTER = 1, // For Content Script DOM manipulations | 15 SETTER = 1, // For Content Script DOM manipulations |
16 METHOD = 2, // For Content Script DOM manipulations | 16 METHOD = 2, // For Content Script DOM manipulations |
17 INSERTED = 3, // For when Content Scripts are added to pages | 17 INSERTED = 3, // For when Content Scripts are added to pages |
18 XHR = 4, // When an extension core sends an XHR | 18 XHR = 4, // When an extension core sends an XHR |
19 WEBREQUEST = 5, // When a page request is modified with the WebRequest API | 19 WEBREQUEST = 5, // When a page request is modified with the WebRequest API |
20 MODIFIED = 6, // For legacy, also used as a catch-all | 20 MODIFIED = 6, // For legacy, also used as a catch-all |
21 }; | 21 }; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace | 24 } // namespace extensions |
25 | 25 |
26 #endif // EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ | 26 #endif // EXTENSIONS_COMMON_DOM_ACTION_TYPES_H_ |
OLD | NEW |