OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ | 5 #ifndef COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ |
6 #define COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ | 6 #define COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ |
7 | 7 |
8 namespace autofill { | 8 namespace autofill { |
9 | 9 |
10 // Specifies the nature of the forms triggering the call. | 10 // Specifies the nature of the forms triggering the call. |
11 enum FormsSeenState { | 11 enum FormsSeenState { |
12 // Forms present on page load with no additional unsent forms. | 12 // Forms present on page load with no additional unsent forms. |
13 NO_SPECIAL_FORMS_SEEN = 0, | 13 NO_SPECIAL_FORMS_SEEN = 0, |
14 // If this an Autocheckout page, there are more that should be checked. | 14 // If this an Autocheckout page, there are more that should be checked. |
15 PARTIAL_FORMS_SEEN = 1, | 15 PARTIAL_FORMS_SEEN = 1, |
16 // Forms were added dynamically post-page load. | 16 // Forms were added dynamically post-page load. |
17 DYNAMIC_FORMS_SEEN = 2, | 17 DYNAMIC_FORMS_SEEN = 2, |
| 18 // Number of states. |
| 19 FORMS_SEEN_STATE_NUM_STATES = 3, |
18 }; | 20 }; |
19 | 21 |
20 } // namespace autofill | 22 } // namespace autofill |
21 | 23 |
22 #endif // COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ | 24 #endif // COMPONENTS_AUTOFILL_COMMON_FORMS_SEEN_PARAM_H_ |
OLD | NEW |