OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "components/autofill/browser/autocheckout_page_meta_data.h" | 5 #include "components/autofill/browser/autocheckout_page_meta_data.h" |
6 | 6 |
7 namespace autofill { | 7 namespace autofill { |
8 | 8 |
9 AutocheckoutPageMetaData::AutocheckoutPageMetaData() | 9 AutocheckoutPageMetaData::AutocheckoutPageMetaData() |
10 : current_page_number(-1), | 10 : current_page_number(-1), |
11 total_pages(-1) {} | 11 total_pages(-1), |
| 12 ignore_ajax(false) {} |
12 | 13 |
13 AutocheckoutPageMetaData::~AutocheckoutPageMetaData() {} | 14 AutocheckoutPageMetaData::~AutocheckoutPageMetaData() {} |
14 | 15 |
15 bool AutocheckoutPageMetaData::IsStartOfAutofillableFlow() const { | 16 bool AutocheckoutPageMetaData::IsStartOfAutofillableFlow() const { |
16 return current_page_number == 0 && total_pages > 0; | 17 return current_page_number == 0 && total_pages > 0; |
17 } | 18 } |
18 | 19 |
19 bool AutocheckoutPageMetaData::IsInAutofillableFlow() const { | 20 bool AutocheckoutPageMetaData::IsInAutofillableFlow() const { |
20 return current_page_number >= 0 && current_page_number < total_pages; | 21 return current_page_number >= 0 && current_page_number < total_pages; |
21 } | 22 } |
22 | 23 |
23 bool AutocheckoutPageMetaData::IsEndOfAutofillableFlow() const { | 24 bool AutocheckoutPageMetaData::IsEndOfAutofillableFlow() const { |
24 return total_pages > 0 && current_page_number == total_pages - 1; | 25 return total_pages > 0 && current_page_number == total_pages - 1; |
25 } | 26 } |
26 | 27 |
27 } // namesapce autofill | 28 } // namesapce autofill |
OLD | NEW |