Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: components/autofill/content/browser/autocheckout_page_meta_data.h

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yay for scoped pointers Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Page number of the multipage Autofill flow this form belongs to 32 // Page number of the multipage Autofill flow this form belongs to
33 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set 33 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set
34 // to -1. 34 // to -1.
35 int current_page_number; 35 int current_page_number;
36 36
37 // Total number of pages in the multipage Autofill flow. If this form doesn't 37 // Total number of pages in the multipage Autofill flow. If this form doesn't
38 // belong to any autofill flow, it is set to -1. 38 // belong to any autofill flow, it is set to -1.
39 int total_pages; 39 int total_pages;
40 40
41 // Whether ajaxy form changes that occur on this page during an Autocheckout
42 // flow should be ignored.
43 bool ignore_ajax;
44
41 // A list of elements to click before filling form fields. Elements have to be 45 // A list of elements to click before filling form fields. Elements have to be
42 // clicked in order. 46 // clicked in order.
43 std::vector<WebElementDescriptor> click_elements_before_form_fill; 47 std::vector<WebElementDescriptor> click_elements_before_form_fill;
44 48
45 // A list of elements to click after filling form fields, and before clicking 49 // A list of elements to click after filling form fields, and before clicking
46 // page_advance_button. Elements have to be clicked in order. 50 // page_advance_button. Elements have to be clicked in order.
47 std::vector<WebElementDescriptor> click_elements_after_form_fill; 51 std::vector<WebElementDescriptor> click_elements_after_form_fill;
48 52
49 // The proceed element of the multipage Autofill flow. It can be empty 53 // The proceed element of the multipage Autofill flow. It can be empty
50 // if current page is the last page of a flow or isn't a member of a flow. 54 // if current page is the last page of a flow or isn't a member of a flow.
51 // 55 //
52 // We do expect page navigation when click on |proceed_element_descriptor|, 56 // We do expect page navigation when click on |proceed_element_descriptor|,
53 // and report an error if it doesn't. Oppositely, we do not expect page 57 // and report an error if it doesn't. Oppositely, we do not expect page
54 // navigation when click elements in |click_elements_before_form_fill| and 58 // navigation when click elements in |click_elements_before_form_fill| and
55 // |click_elements_after_form_fill|. Because of this behavior difference and 59 // |click_elements_after_form_fill|. Because of this behavior difference and
56 // |proceed_element_descriptor| is optional, we separate it from 60 // |proceed_element_descriptor| is optional, we separate it from
57 // |click_elements_after_form_fill|. 61 // |click_elements_after_form_fill|.
58 WebElementDescriptor proceed_element_descriptor; 62 WebElementDescriptor proceed_element_descriptor;
59 63
60 private: 64 private:
61 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData); 65 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData);
62 }; 66 };
63 67
64 } // namespace autofill 68 } // namespace autofill
65 69
66 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 70 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698