OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/autofill/content/browser/autocheckout_page_meta_data.h" | |
6 | |
7 namespace autofill { | |
8 | |
9 AutocheckoutPageMetaData::AutocheckoutPageMetaData() | |
10 : current_page_number(-1), | |
11 total_pages(-1), | |
12 ignore_ajax(true) {} | |
13 | |
14 AutocheckoutPageMetaData::~AutocheckoutPageMetaData() {} | |
15 | |
16 bool AutocheckoutPageMetaData::IsStartOfAutofillableFlow() const { | |
17 return current_page_number == 0 && total_pages > 0; | |
18 } | |
19 | |
20 bool AutocheckoutPageMetaData::IsInAutofillableFlow() const { | |
21 return current_page_number >= 0 && current_page_number < total_pages; | |
22 } | |
23 | |
24 bool AutocheckoutPageMetaData::IsEndOfAutofillableFlow() const { | |
25 return total_pages > 0 && current_page_number == total_pages - 1; | |
26 } | |
27 | |
28 } // namesapce autofill | |
OLD | NEW |