| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_PAGE_META_DATA_H_ | |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_PAGE_META_DATA_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "components/autofill/common/web_element_descriptor.h" | |
| 10 | |
| 11 namespace autofill { | |
| 12 | |
| 13 // Container for multipage Autocheckout data. | |
| 14 struct AutocheckoutPageMetaData { | |
| 15 AutocheckoutPageMetaData(); | |
| 16 ~AutocheckoutPageMetaData(); | |
| 17 | |
| 18 // Returns true if the Autofill server says that the current page is start of | |
| 19 // a multipage Autofill flow. | |
| 20 bool IsStartOfAutofillableFlow() const; | |
| 21 | |
| 22 // Returns true if the Autofill server says that the current page is in a | |
| 23 // multipage Autofill flow. | |
| 24 bool IsInAutofillableFlow() const; | |
| 25 | |
| 26 // Returns true if the Autofill server says that the current page is the end | |
| 27 // of a multipage Autofill flow. | |
| 28 bool IsEndOfAutofillableFlow() const; | |
| 29 | |
| 30 // Page number of the multipage Autofill flow this form belongs to | |
| 31 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set | |
| 32 // to -1. | |
| 33 int current_page_number; | |
| 34 | |
| 35 // Total number of pages in the multipage Autofill flow. If this form doesn't | |
| 36 // belong to any autofill flow, it is set to -1. | |
| 37 int total_pages; | |
| 38 | |
| 39 // The proceed element of the multipage Autofill flow. Can be null if the | |
| 40 // current page is the last page of a flow or isn't a member of a flow. | |
| 41 scoped_ptr<WebElementDescriptor> proceed_element_descriptor; | |
| 42 | |
| 43 private: | |
| 44 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData); | |
| 45 }; | |
| 46 | |
| 47 } // namespace autofill | |
| 48 | |
| 49 #endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_PAGE_META_DATA_H_ | |
| OLD | NEW |